Skip to content

Commit abc1ed4

Browse files
Update CI workflows to ignore gh-pages branch
1 parent 35bdb1b commit abc1ed4

2 files changed

Lines changed: 45 additions & 51 deletions

File tree

.github/workflows/ci.yml

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: 'CI'
22
on:
33
push:
4-
# ignore documentation-only changes
4+
branches-ignore:
5+
- gh-pages
56
paths-ignore:
67
- '*.md'
78
pull_request:
9+
branches-ignore:
10+
- gh-pages
811
paths-ignore:
912
- '*.md'
1013
workflow_dispatch: {}
@@ -160,38 +163,39 @@ jobs:
160163
path: ./react/reports/playwright/
161164

162165
# Mutation testing
163-
stryker:
164-
if: "github.ref == 'refs/heads/main'"
165-
runs-on: ubuntu-latest
166-
needs: [unit_tests]
167-
strategy:
168-
matrix:
169-
node-version: [22.x]
170-
steps:
171-
- uses: actions/checkout@v4
172-
- name: Use Node.js ${{ matrix.node-version }} (with cache)
173-
uses: actions/setup-node@v4
174-
with:
175-
node-version: ${{ matrix.node-version }}
176-
cache: 'npm'
177-
cache-dependency-path: react/package-lock.json
178-
- name: Install dependencies
179-
run: npm install
180-
working-directory: react
181-
- name: Run Stryker tests
182-
run: npx stryker run
183-
working-directory: react
184-
- name: Upload mutation reports
185-
uses: actions/upload-artifact@v4
186-
with:
187-
name: reports-mutation
188-
path: ./react/reports/mutation/
166+
# stryker:
167+
# if: "github.ref == 'refs/heads/main'"
168+
# runs-on: ubuntu-latest
169+
# needs: [unit_tests]
170+
# strategy:
171+
# matrix:
172+
# node-version: [22.x]
173+
# steps:
174+
# - uses: actions/checkout@v4
175+
# - name: Use Node.js ${{ matrix.node-version }} (with cache)
176+
# uses: actions/setup-node@v4
177+
# with:
178+
# node-version: ${{ matrix.node-version }}
179+
# cache: 'npm'
180+
# cache-dependency-path: react/package-lock.json
181+
# - name: Install dependencies
182+
# run: npm install
183+
# working-directory: react
184+
# - name: Run Stryker tests
185+
# run: npx stryker run
186+
# working-directory: react
187+
# - name: Upload mutation reports
188+
# uses: actions/upload-artifact@v4
189+
# with:
190+
# name: reports-mutation
191+
# path: ./react/reports/mutation/
189192

190193
# Deploy reports to GitHub Pages under /reports/
191194
deploy_reports:
192195
if: github.ref == 'refs/heads/main'
193196
runs-on: ubuntu-latest
194-
needs: [stryker, e2e, unit_tests, duplication]
197+
# needs: [stryker, e2e, unit_tests, duplication]
198+
needs: [e2e, unit_tests, duplication]
195199
steps:
196200
- name: Checkout repository
197201
uses: actions/checkout@v4
@@ -202,11 +206,11 @@ jobs:
202206
with:
203207
name: reports-coverage
204208
path: reports/coverage
205-
- name: Download mutation reports
206-
uses: actions/download-artifact@v4
207-
with:
208-
name: reports-mutation
209-
path: reports/mutation
209+
# - name: Download mutation reports
210+
# uses: actions/download-artifact@v4
211+
# with:
212+
# name: reports-mutation
213+
# path: reports/mutation
210214
- name: Download playwright reports
211215
uses: actions/download-artifact@v4
212216
with:
@@ -227,15 +231,13 @@ jobs:
227231
git checkout gh-pages || git checkout --orphan gh-pages
228232
- name: Copy reports to gh-pages
229233
run: |
234+
rm -rf reports
230235
mkdir -p reports
231-
cp -r reports/coverage reports/
232-
cp -r reports/mutation reports/
233-
cp -r reports/playwright reports/
234-
cp -r reports/duplication reports/
236+
cp -r reports/ reports/
235237
- name: Commit and push reports
236238
run: |
237239
git add reports/
238-
git commit -m "Update reports [ci skip]" || echo "No changes to commit"
240+
git commit -m "Update reports" || echo "No changes to commit"
239241
git push origin gh-pages
240242
env:
241243
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
#
44
# You may wish to alter this file to override the set of languages analyzed,
55
# or to provide custom queries or build logic.
6-
name: 'CodeQL'
76

7+
name: 'CodeQL'
88
on:
99
push:
10-
branches: [main]
10+
branches-ignore:
11+
- gh-pages
1112
pull_request:
12-
# The branches below must be a subset of the branches above
13-
branches: [main]
13+
branches-ignore:
14+
- gh-pages
1415
schedule:
1516
- cron: '0 22 * * 4'
1617

1718
jobs:
1819
analyze:
19-
if: "!contains(github.event.head_commit.message, 'skip ci')"
2020
name: Analyze
2121
runs-on: ubuntu-latest
2222

@@ -51,13 +51,5 @@ jobs:
5151
# ℹ️ Command-line programs to run using the OS shell.
5252
# 📚 https://git.io/JvXDl
5353

54-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
55-
# and modify them (or add more) to build your code if your project
56-
# uses a compiled language
57-
58-
#- run: |
59-
# make bootstrap
60-
# make release
61-
6254
- name: Perform CodeQL Analysis
6355
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)