|
@@ -5,13 +5,12 @@ name: Node.js CI
|
|
|
|
|
|
on:
|
|
|
push:
|
|
|
- branches: [ main ]
|
|
|
+ branches: [main]
|
|
|
pull_request:
|
|
|
- branches: [ main ]
|
|
|
+ branches: [main]
|
|
|
|
|
|
jobs:
|
|
|
build:
|
|
|
-
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
strategy:
|
|
@@ -20,12 +19,10 @@ jobs:
|
|
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
|
|
|
|
steps:
|
|
|
- - uses: actions/checkout@v2
|
|
|
- - name: Use Node.js ${{ matrix.node-version }}
|
|
|
- uses: actions/setup-node@v2
|
|
|
- with:
|
|
|
- node-version: ${{ matrix.node-version }}
|
|
|
- cache: 'npm'
|
|
|
- - run: npm ci
|
|
|
- - run: npm run build --if-present
|
|
|
- - run: npm test
|
|
|
+ - uses: actions/checkout@v2
|
|
|
+ - name: Use Node.js ${{ matrix.node-version }}
|
|
|
+ uses: actions/setup-node@v2
|
|
|
+ with:
|
|
|
+ node-version: ${{ matrix.node-version }}
|
|
|
+ cache: "npm"
|
|
|
+ - run: npm run lint
|