-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (38 loc) · 1.35 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 }}