Bump GitHub workflow action actions/setup-node@v4
, use action npm c…
#41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
main: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
node-version: 16.x | |
- name: Install npm packages | |
run: npm ci | |
- name: Lint | |
run: npx eslint . | |
- name: Test | |
run: ./test/test.sh |