Skip to content

Update Node version to 18.x in GitHub Actions workflow #128

Update Node version to 18.x in GitHub Actions workflow

Update Node version to 18.x in GitHub Actions workflow #128

Workflow file for this run

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 }}