Skip to content

Commit 253903a

Browse files
committed
CI: reorder jobs to be more efficient
1 parent fa5b526 commit 253903a

1 file changed

Lines changed: 20 additions & 16 deletions

File tree

.github/workflows/pr.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,25 @@ permissions:
1212
contents: read
1313

1414
jobs:
15+
# this validates the Gemfile and Rakefile that will be copied into the build container
16+
# they provide tasks that will be used to compile ezbake projects and build packages
17+
validate-staging-templates:
18+
name: Validate Ruby
19+
runs-on: ubuntu-24.04
20+
steps:
21+
- uses: actions/checkout@v6
22+
- name: Setup ruby
23+
uses: ruby/setup-ruby@v1
24+
with:
25+
ruby-version: '3.2'
26+
bundler-cache: true
27+
working-directory: resources/puppetlabs/lein-ezbake/template/global
28+
- run: bundle env
29+
working-directory: resources/puppetlabs/lein-ezbake/template/global
30+
1531
test:
1632
runs-on: ubuntu-24.04
33+
needs: validate-staging-templates
1734
strategy:
1835
matrix:
1936
java: [ '17', '21' ]
@@ -38,24 +55,11 @@ jobs:
3855
lein: latest # Leiningen
3956
- run: lein test
4057

41-
# this validates the Gemfile and Rakefile that will be copied into the build container
42-
# they provide tasks that will be used to compile ezbake projects and build packages
43-
validate-staging-templates:
44-
name: Validate Ruby
45-
runs-on: ubuntu-24.04
46-
steps:
47-
- uses: actions/checkout@v6
48-
- name: Setup ruby
49-
uses: ruby/setup-ruby@v1
50-
with:
51-
ruby-version: '3.2'
52-
bundler-cache: true
53-
working-directory: resources/puppetlabs/lein-ezbake/template/global
54-
- run: bundle env
55-
working-directory: resources/puppetlabs/lein-ezbake/template/global
56-
5758
build:
5859
name: build openvox-server
60+
runs-on: ubuntu-24.04
61+
needs:
62+
- test
5963
steps:
6064
- name: checkout openvox-server
6165
uses: actions/checkout@v6

0 commit comments

Comments
 (0)