-
Notifications
You must be signed in to change notification settings - Fork 3
64 lines (52 loc) · 2.06 KB
/
workshop-ci.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: workshop-ci
on:
# run on pull request events for the master branch only
pull_request:
branches: [ master ]
paths-ignore:
- LICENSE
- '**.md'
- .github/workflows/run-crucible-tracking.yaml
- .github/workflows/faux-crucible-ci.yaml
- .github/workflows/faux-workshop-ci.yaml
- 'docs/**'
# allow for manual invocation from the actions tab
workflow_dispatch:
concurrency:
group: ${{ github.ref }}/workshop-ci
cancel-in-progress: true
jobs:
workshop-ci:
runs-on: [ self-hosted, workshop ]
steps:
- uses: actions/checkout@v4
- name: Install container dependencies
run: |
sudo dnf install -y skopeo podman buildah
- name: Install Perl dependencies
run: |
sudo dnf install -y perl-Coro perl-JSON perl-JSON-XS perl-JSON-Validator perl-Data-UUID perl-Digest-SHA perl-Archive-Extract-xz-IO-Uncompress-UnXz.noarch
- name: Install Toolbox
run: |
pushd ~/
git clone https://github.com/perftool-incubator/toolbox.git
- name: Run workshop - dump-config
run: |
export TOOLBOX_HOME=~/toolbox
echo
sudo --preserve-env=TOOLBOX_HOME ./workshop.pl --log-level verbose --label workshop-ci-dump-config --userenv ./userenvs/fedora-ci.json --dump-config true
- name: Run workshop - dump-config - force-update-policy missing
run: |
export TOOLBOX_HOME=~/toolbox
echo
sudo --preserve-env=TOOLBOX_HOME ./workshop.pl --log-level verbose --label workshop-ci-dump-config --userenv ./userenvs/fedora-ci.json --dump-config true --force-update-policy missing
- name: Run workshop - dump-files
run: |
export TOOLBOX_HOME=~/toolbox
echo
sudo --preserve-env=TOOLBOX_HOME ./workshop.pl --log-level verbose --label workshop-ci-dump-files --userenv ./userenvs/fedora-ci.json --dump-files true
- name: Run workshop
run: |
export TOOLBOX_HOME=~/toolbox
echo
sudo --preserve-env=TOOLBOX_HOME ./workshop.pl --log-level verbose --label workshop-ci --userenv ./userenvs/fedora-ci.json