-
Notifications
You must be signed in to change notification settings - Fork 18
53 lines (50 loc) · 1.36 KB
/
test-legacy.yaml
File metadata and controls
53 lines (50 loc) · 1.36 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Pogues Test CI for Legacy
on:
push:
branches: ["main", "next"]
paths: ["legacy/**"]
pull_request:
types: [opened, synchronize, reopened]
paths: ["legacy/**"]
jobs:
test:
name: Test Legacy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
package_json_file: "legacy/package.json"
- uses: actions/setup-node@v6
with:
node-version: "20"
cache: "pnpm"
cache-dependency-path: legacy/pnpm-lock.yaml
- run: cd legacy && pnpm i --frozen-lockfile && pnpm test:coverage
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage
path: legacy/coverage
sonarcloud:
name: SonarCloud Legacy
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download coverage artifact
uses: actions/download-artifact@v4
with:
name: coverage
path: legacy/coverage
- name: SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@v6
with:
projectBaseDir: legacy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}