Skip to content

Commit 8a9755f

Browse files
Merge remote-tracking branch 'origin/main' into hover-text-copy
2 parents df930a0 + b78ec29 commit 8a9755f

6 files changed

Lines changed: 2656 additions & 2609 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
schedule:
9+
- cron: "0 6 * * 1" # Weekly Monday 6am UTC
10+
11+
jobs:
12+
analyze:
13+
name: Analyze (${{ matrix.language }})
14+
runs-on: ubuntu-latest
15+
if: "! github.event.pull_request.draft"
16+
concurrency:
17+
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}-${{ matrix.language }}
18+
cancel-in-progress: true
19+
permissions:
20+
security-events: write
21+
contents: read
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
language: [python, javascript]
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- name: Initialize CodeQL
31+
uses: github/codeql-action/init@v3
32+
with:
33+
languages: ${{ matrix.language }}
34+
35+
- name: Perform CodeQL Analysis
36+
uses: github/codeql-action/analyze@v3

.github/workflows/frontend-lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- name: Install dependencies
3030
working-directory: ./frontend
31-
run: npm ci
31+
run: npm install
3232

3333
- name: Run ESLint
3434
working-directory: ./frontend

.github/workflows/frontend-tests.yaml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,23 @@ on:
44
workflow_dispatch:
55
push:
66
branches: ["main"]
7+
paths:
8+
- "frontend/**"
79
pull_request:
810
branches: ["main"]
11+
paths:
12+
- "frontend/**"
913

1014
concurrency:
11-
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
12-
cancel-in-progress: true
15+
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
16+
cancel-in-progress: true
17+
1318
env:
14-
FORCE_COLOR: "1"
19+
FORCE_COLOR: "1"
20+
1521
jobs:
1622
frontend_tests:
17-
if: '! github.event.pull_request.draft'
23+
if: "! github.event.pull_request.draft"
1824
runs-on: ubuntu-latest
1925
name: Frontend Tests
2026
strategy:
@@ -23,34 +29,30 @@ jobs:
2329

2430
steps:
2531
- uses: actions/checkout@v4
32+
2633
- name: Use Node.js ${{ matrix.node-version }}
2734
uses: actions/setup-node@v4
2835
with:
2936
node-version: ${{ matrix.node-version }}
30-
- name: Cache node modules
31-
id: cache-npm
32-
uses: actions/cache@v4
33-
env:
34-
cache-name: cache-node-modules
35-
with:
36-
path: ~/.npm
37-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/frontend/package-lock.json') }}
38-
restore-keys: |
39-
${{ runner.os }}-build-${{ env.cache-name }}-
40-
${{ runner.os }}-build-
41-
${{ runner.os }}-
37+
cache: "npm"
38+
cache-dependency-path: frontend/package-lock.json
39+
4240
- name: Install dependencies
4341
working-directory: ./frontend
44-
run: npm ci
42+
run: npm install
43+
4544
- name: Run tests with coverage
4645
working-directory: ./frontend
4746
run: CI=true npm run test -- --coverage .
47+
4848
- name: Git fetch unshallow
49-
run: |
50-
git fetch --unshallow
49+
if: ${{ github.actor != 'dependabot[bot]' }}
50+
run: git fetch --unshallow
51+
5152
- name: UI SonarCloud Scan
52-
uses: SonarSource/sonarcloud-github-action@master
53+
uses: SonarSource/sonarcloud-github-action@v3
5354
if: ${{ github.actor != 'dependabot[bot]' }}
55+
continue-on-error: true
5456
env:
5557
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5658
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)