Update Node version to 18.x in GitHub Actions workflow #128
Workflow file for this run
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: Tests | |
on: push | |
jobs: | |
tests: | |
name: Unit | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: π₯ Checkout | |
uses: actions/checkout@v2 | |
- name: π¦ Install Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18.x' | |
registry-url: 'https://npm.pkg.github.com' | |
cache: npm | |
- name: π¦ Install dependencies | |
run: npm ci --audit=false | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: π¨βπ¬ Tests | |
run: npm run test:unit | |
- name: π Coverage report | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
mutational-tests: | |
name: Mutational | |
needs: tests | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: π₯ Checkout | |
uses: actions/checkout@v2 | |
- name: π¦ Install Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18.x' | |
registry-url: 'https://npm.pkg.github.com' | |
cache: npm | |
- name: π¦ Install dependencies | |
run: npm ci --audit=false | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: π§ββοΈ Mutational tests | |
run: npm run build && npm run test:mutational | |
env: | |
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} |