5
5
jobs :
6
6
comment-action-start :
7
7
name : Comment action started
8
- runs-on : ubuntu-latest
8
+ runs-on : [self-hosted, Linux, X64]
9
9
if : github.event.issue.pull_request && contains(github.event.comment.body, '/approve-snapshots') && github.event.comment.author_association == 'MEMBER'
10
10
outputs :
11
11
pr_head : ${{ steps.comment-branch.outputs.head_ref }}
34
34
update-snapshots-aarch64 :
35
35
name : Update Snapshots aarch64
36
36
if : github.event.issue.pull_request && contains(github.event.comment.body, '/approve-snapshots') && github.event.comment.author_association == 'MEMBER'
37
- runs-on : ubuntu-22.04-arm
37
+ runs-on : [self-hosted, Linux, X64]
38
38
permissions :
39
39
contents : write
40
40
pull-requests : write
@@ -56,21 +56,17 @@ jobs:
56
56
with :
57
57
attic_token : ${{ secrets.ATTIC_TOKEN }}
58
58
github_token : ${{ secrets.GITHUB_TOKEN }}
59
- - name : Install Node.js
60
- uses : actions/setup-node@v4
61
- with :
62
- node-version : " 22"
63
59
- name : Install dependencies
64
60
run : |
65
- npm ci
61
+ nix develop .#ci --command npm ci
66
62
working-directory : frontend
67
63
- name : Build application
68
64
run : |
69
65
nix build .#thymis-controller
70
66
- name : Run tests
71
67
run : |
72
68
export THYMIS_FLAKE_ROOT='..'
73
- nix develop .#forNpmTesting --command npm run test:integration -- --update-snapshots
69
+ nix develop .#ci --command ../.github/npm_test_integration.sh -- --update-snapshots
74
70
working-directory : frontend
75
71
- name : Upload Playwright report
76
72
uses : actions/upload-artifact@v4
94
90
update-snapshots-x86_64 :
95
91
name : Update Snapshots x86_64
96
92
if : github.event.issue.pull_request && contains(github.event.comment.body, '/approve-snapshots') && github.event.comment.author_association == 'MEMBER'
97
- runs-on : ubuntu-latest
93
+ runs-on : [self-hosted, Linux, X64]
98
94
permissions :
99
95
contents : write
100
96
pull-requests : write
@@ -116,13 +112,9 @@ jobs:
116
112
with :
117
113
attic_token : ${{ secrets.ATTIC_TOKEN }}
118
114
github_token : ${{ secrets.GITHUB_TOKEN }}
119
- - name : Install Node.js
120
- uses : actions/setup-node@v4
121
- with :
122
- node-version : " 22"
123
115
- name : Install dependencies
124
116
run : |
125
- npm ci
117
+ nix develop .#ci --command npm ci
126
118
working-directory : frontend
127
119
- name : Build application
128
120
run : |
@@ -131,7 +123,7 @@ jobs:
131
123
run : |
132
124
if [ -f "tests/x86_vm.spec.ts" ]; then
133
125
export THYMIS_FLAKE_ROOT='..'
134
- nix develop .#forNpmTesting --command npm run test:integration -- "tests/x86_vm.spec.ts" --update-snapshots
126
+ nix develop .#ci --command ../.github/npm_test_integration.sh -- "tests/x86_vm.spec.ts" --update-snapshots
135
127
fi
136
128
working-directory : frontend
137
129
- name : Upload Playwright report
@@ -150,7 +142,7 @@ jobs:
150
142
151
143
upload-artifacts :
152
144
name : Upload Artifacts
153
- runs-on : ubuntu-latest
145
+ runs-on : [self-hosted, Linux, X64]
154
146
needs : [comment-action-start, update-snapshots-aarch64, update-snapshots-x86_64]
155
147
steps :
156
148
- name : Get Thymis App Token
0 commit comments