Skip to content

Commit 9b23fd2

Browse files
authored
chore: optimize CI runs (#324)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 62b303a commit 9b23fd2

File tree

3 files changed

+23
-17
lines changed

3 files changed

+23
-17
lines changed

.github/workflows/cibuild.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
name: CI Build
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: ['master', 'main']
6+
pull_request:
7+
workflow_dispatch:
48

59
env:
6-
PYTHON_VERISON_DEFAULT: "3.10"
10+
PYTHON_VERSION_DEFAULT: "3.10"
711

812
jobs:
913
build:
10-
1114
runs-on: ubuntu-latest
12-
1315
steps:
1416
- name: Checkout
1517
# see https://github.com/actions/checkout
@@ -22,24 +24,20 @@ jobs:
2224
distribution: 'zulu'
2325
java-package: jdk
2426
- name: Build with Maven
25-
run: |
26-
cd tools
27-
mvn -B package --file pom.xml
28-
cd ..
27+
run: mvn -B package --file pom.xml
28+
working-directory: tools
2929
- name: Setup Python Environment
3030
# see https://github.com/actions/setup-python
3131
uses: actions/setup-python@v4
3232
with:
33-
python-version: ${{ env.PYTHON_VERISON_DEFAULT }}
33+
python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
3434
architecture: 'x64'
3535
- name: Generate JSON Schema documentation
36-
run: |
37-
cd docgen/json
38-
./gen.sh
36+
run: ./gen.sh
37+
working-directory: docgen/json
3938
- name: Generate XML Schema documentation
40-
run: |
41-
cd docgen/xml
42-
./gen.sh
39+
run: ./gen.sh
40+
working-directory: docgen/xml
4341
- name: Archive JSON Schema documentation
4442
# https://github.com/actions/upload-artifact
4543
uses: actions/upload-artifact@v3

.github/workflows/js.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
name: JS CI
44

5-
on: [push, pull_request, workflow_dispatch]
5+
on:
6+
push:
7+
branches: ['master', 'main']
8+
pull_request:
9+
workflow_dispatch:
610

711
concurrency:
812
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/php.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
name: PHP CI
44

5-
on: [push, pull_request, workflow_dispatch]
5+
on:
6+
push:
7+
branches: ['master', 'main']
8+
pull_request:
9+
workflow_dispatch:
610

711
defaults:
812
run:

0 commit comments

Comments
 (0)