Make the heartbeart frequency configurable and it now defaults to 10m… #9
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: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
sonarcloud: | |
name: SonarCloud | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Enables Corepack | |
run: corepack enable | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Test Coverage | |
run: pnpm vitest run --coverage | |
env: | |
VITE_ACG_ID: ${{ secrets.VITE_ACG_ID }} | |
VITE_ACG_SECURITY_TOKEN: ${{ secrets.VITE_ACG_SECURITY_TOKEN }} | |
VITE_ACG_TOKEN: ${{ secrets.VITE_ACG_TOKEN }} | |
VITE_FCM_SENDER_ID: ${{ secrets.VITE_FCM_SENDER_ID }} | |
VITE_FCM_SERVER_KEY: ${{ secrets.VITE_FCM_SERVER_KEY }} | |
VITE_FCM_TOKEN: ${{ secrets.VITE_FCM_TOKEN }} | |
VITE_FIREBASE_API_KEY: ${{ secrets.VITE_FIREBASE_API_KEY }} | |
VITE_FIREBASE_APP_ID: ${{ secrets.VITE_FIREBASE_APP_ID }} | |
VITE_FIREBASE_PROJECT_ID: ${{ secrets.VITE_FIREBASE_PROJECT_ID }} | |
VITE_GOOGLE_SERVICE_ACCOUNT: ${{ secrets.VITE_GOOGLE_SERVICE_ACCOUNT }} | |
VITE_VAPID_KEY: ${{ secrets.VITE_VAPID_KEY }} | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |