-
Notifications
You must be signed in to change notification settings - Fork 320
89 lines (77 loc) · 2.57 KB
/
smoke.yml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: integration
on:
pull_request:
# Don't run Rust tests if only docs changed.
paths-ignore:
- 'docs/**'
# Also support ad-hoc calls for workflow.
workflow_call:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
smoke:
runs-on: buildjet-16vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: install nix
uses: nixbuild/nix-quick-install-action@v28
- name: setup nix cache
uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
backend: buildjet
- name: Load rust cache
uses: astriaorg/[email protected]
with:
# bust cache with unique key; increment the integer in `^v(\d+)` to force fresh cache
prefix-key: "v0-rust-smoke"
- name: run the smoke-test suite
run: nix develop --command just smoke
pmonitor:
runs-on: buildjet-16vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: install nix
uses: nixbuild/nix-quick-install-action@v28
- name: setup nix cache
uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
backend: buildjet
- name: Load rust cache
uses: astriaorg/[email protected]
- name: run the pmonitor integration tests
run: nix develop --command just integration-pmonitor
# Integration tests that run against the public testnet endpoints.
# Temporarily disabling these in CI, as the testnet endpoints are
# incompatible with `main`, given GH5010.
# testnet:
# runs-on: buildjet-16vcpu-ubuntu-2204
# steps:
# - uses: actions/checkout@v4
# with:
# lfs: true
#
# - name: install nix
# uses: nixbuild/nix-quick-install-action@v28
#
# - name: setup nix cache
# uses: nix-community/cache-nix-action@v5
# with:
# primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
# restore-prefixes-first-match: nix-${{ runner.os }}-
# backend: buildjet
#
# - name: Load rust cache
# uses: astriaorg/[email protected]
#
# - name: run the testnet integration tests
# run: nix develop --command just integration-testnet