-
Notifications
You must be signed in to change notification settings - Fork 44
50 lines (38 loc) · 1.13 KB
/
bolt-test.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
name: bolt-test
on: workflow_dispatch
concurrency:
group: check-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
# Enable fail-fast behavior
shell: bash -e {0}
env:
store: /home/runner/nix
jobs:
test:
runs-on: [self-hosted, linux, x64]
steps:
# MARK: Git
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- name: LFS
run: git lfs pull
- uses: ./.github/actions/pre-init
with:
SCCACHE_AWS_SECRET_ACCESS_KEY: ${{ secrets.SCCACHE_AWS_SECRET_ACCESS_KEY }}
SCCACHE_AWS_ACCESS_KEY_ID: ${{ secrets.SCCACHE_AWS_ACCESS_KEY_ID }}
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
- name: Bolt Init
run: nix-shell --pure --run "bolt init --yes ci"
- name: Bolt Test
run: nix-shell --pure --run "bolt test"
- name: K3D Cleanup
if: always()
run: nix-shell --pure --run "k3d cluster delete rivet-ci"
- name: Force Parallel Failure
if: failure()
uses: andymckay/[email protected]