-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.44 KB
/
pipeline-visualiser.yml
File metadata and controls
44 lines (42 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: "Pipeline Visualiser checks"
on:
pull_request:
branches: [main]
paths:
- "support/pipeline-visualiser/**"
- ".github/workflows/pipeline-visualiser.yml"
merge_group:
types: [checks_requested]
jobs:
build_container:
runs-on: ubuntu-24.04-arm # The container will ultimately be built for arm64 and run on arm64, so we should test it on arm64.
name: "Build container"
defaults:
run:
working-directory: support/pipeline-visualiser
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run docker build
run: docker build .
run_tests:
runs-on: ubuntu-24.04-arm
name: "Build and test"
defaults:
run:
working-directory: support/pipeline-visualiser
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Determine Ruby version
id: determine-ruby-version
run: |
echo "RUBY_VERSION=$(cat ../../.ruby-version)" >> "$GITHUB_OUTPUT"
- name: Install Ruby and gems
uses: ruby/setup-ruby@4c56a21280b36d862b5fc31348f463d60bdc55d5 # v1.301.0
with:
bundler-cache: true
ruby-version: ${{steps.determine-ruby-version.outputs.RUBY_VERSION}}
working-directory: support/pipeline-visualiser
- name: Run pipeline visualiser tests
run: bundle exec rspec