CI #116
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: | |
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 -g pnpm@latest | |
- run: pnpm install | |
- run: pnpm run build | |
- run: TZ=Europe/Zurich pnpm test -- --coverage | |
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 -g pnpm@latest | |
- run: pnpm install | |
- run: pnpm run build | |
- run: TZ=Europe/Zurich pnpm test -- --coverage | |
- 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 }} |