Skip to content

ci: update GitHub actions to use Node.js v20 #1179

ci: update GitHub actions to use Node.js v20

ci: update GitHub actions to use Node.js v20 #1179

Workflow file for this run

name: Node package
on:
push:
paths-ignore:
- 'examples/**'
jobs:
test:
name: Test ${{ matrix.package }} at Node v${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
node-version: [ '16' ]
package:
- "qase-cucumberjs"
- "qase-cypress"
- "qase-jest"
- "qase-newman"
- "qase-playwright"
- "qase-testcafe"
- "qaseio"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- working-directory: ./${{ matrix.package }}
run: npm install
- working-directory: ./${{ matrix.package }}
run: npm run lint
- working-directory: ./${{ matrix.package }}
run: npm run test
build-n-publish:
name: Build and publish ${{ matrix.package }}
runs-on: ubuntu-latest
needs: test
strategy:
max-parallel: 5
matrix:
package:
- "qase-cucumberjs"
- "qase-cypress"
- "qase-jest"
- "qase-newman"
- "qase-playwright"
- "qase-testcafe"
- "qaseio"
if: startsWith(github.event.ref, 'refs/tags')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
if: contains(github.event.ref, matrix.package)
with:
node-version: '16'
- if: contains(github.event.ref, matrix.package)
working-directory: ./${{ matrix.package }}
run: npm install
- if: contains(github.event.ref, matrix.package)
working-directory: ./${{ matrix.package }}
run: npm run build
- if: contains(github.event.ref, matrix.package)
working-directory: ./${{ matrix.package }}
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}