Skip to content

Commit 5166e75

Browse files
authored
Merge pull request #218 from github/marcogario/reduce_ci_jobs
Reduce triggers in workflows
2 parents c9b0611 + ade519b commit 5166e75

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

.github/workflows/codeql.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: "CodeQL action"
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main, v1]
6+
pull_request:
47

58
jobs:
69
build:

.github/workflows/integration-testing.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: "Integration Testing"
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main, v1]
6+
pull_request:
47

58
jobs:
69
multi-language-repo_test-autodetect-languages:
@@ -150,7 +153,7 @@ jobs:
150153
- uses: ./../action/analyze
151154
env:
152155
TEST_MODE: true
153-
156+
154157
runner-analyze-javascript-ubuntu:
155158
runs-on: ubuntu-latest
156159

@@ -176,7 +179,7 @@ jobs:
176179
runner/dist/codeql-runner-linux analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
177180
env:
178181
TEST_MODE: true
179-
182+
180183
runner-analyze-javascript-windows:
181184
runs-on: windows-latest
182185

@@ -198,7 +201,7 @@ jobs:
198201
runner/dist/codeql-runner-win.exe analyze --repository $Env:GITHUB_REPOSITORY --commit $Env:GITHUB_SHA --ref $Env:GITHUB_REF --github-url $Env:GITHUB_SERVER_URL --github-auth ${{ github.token }}
199202
env:
200203
TEST_MODE: true
201-
204+
202205
runner-analyze-javascript-macos:
203206
runs-on: macos-latest
204207

@@ -220,7 +223,7 @@ jobs:
220223
runner/dist/codeql-runner-macos analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
221224
env:
222225
TEST_MODE: true
223-
226+
224227
runner-analyze-csharp-ubuntu:
225228
runs-on: ubuntu-latest
226229

@@ -254,7 +257,7 @@ jobs:
254257
../action/runner/dist/codeql-runner-linux analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
255258
env:
256259
TEST_MODE: true
257-
260+
258261
runner-analyze-csharp-windows:
259262
runs-on: windows-latest
260263

@@ -325,7 +328,7 @@ jobs:
325328
env:
326329
TEST_MODE: true
327330

328-
331+
329332
runner-analyze-csharp-autobuild-ubuntu:
330333
runs-on: ubuntu-latest
331334

@@ -358,7 +361,7 @@ jobs:
358361
../action/runner/dist/codeql-runner-linux analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
359362
env:
360363
TEST_MODE: true
361-
364+
362365
runner-analyze-csharp-autobuild-windows:
363366
runs-on: windows-latest
364367

.github/workflows/pr-checks.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: "PR checks"
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main, v1]
6+
pull_request:
47

58
jobs:
69
lint-js:
@@ -62,7 +65,7 @@ jobs:
6265
exit 1
6366
fi
6467
echo "Success: node_modules are up to date"
65-
68+
6669
npm-test:
6770
strategy:
6871
matrix:

0 commit comments

Comments
 (0)