CI #796
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: CI | |
on: | |
push: | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
node16: | |
name: Node 16 | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: checkout node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16' | |
- run: npm install | |
- run: npm test -- --run --no-cache | |
node18: | |
name: Node 18 | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: checkout node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- run: npm install | |
- run: npm test -- --run --no-cache | |
node20: | |
name: Node 20 | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: checkout node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- run: npm install | |
- run: npm run lint | |
- run: npm run cs | |
- run: npm test -- --run --coverage --no-cache | |
- run: npm run infection | |
env: | |
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} | |
- name: coveralls.io | |
uses: coverallsapp/github-action@main | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: sonarcloud.io | |
uses: sonarsource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |