forked from OffchainLabs/nitro-testnode
-
Notifications
You must be signed in to change notification settings - Fork 5
93 lines (79 loc) · 2.48 KB
/
smoke-test.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
90
91
92
93
name: Smoke Test CI
run-name: CI triggered from @${{ github.actor }} of ${{ github.head_ref }}
on:
workflow_dispatch:
merge_group:
push:
schedule:
# Run at the end of every day
- cron: "0 0 * * *"
# Cancel in-progress jobs except for integration branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !contains(github.ref, 'integration/')}}
jobs:
smoke_test:
strategy:
matrix:
test-script:
[
./smoke-test.bash,
./smoke-test-l3.bash,
./smoke-test-nitro-simple.bash,
./smoke-test-full-node.bash,
./smoke-test-espresso-finality-node.bash,
./smoke-test-altlayer.bash,
./smoke-test-caldera.bash,
]
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
# Install wscat for finality node smoke test to listen to sequencer feed
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install wscat
run: npm install -g wscat
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host
# Explicitly building the docker images because it's not clear how we can
# use the github action (gha) cache if we let docker compose build the images.
- uses: docker/build-push-action@v5
with:
context: ./rollupcreator
cache-from: type=gha
cache-to: type=gha,mode=max
# Use default branch from test-node.bash
build-args: |
NITRO_CONTRACTS_BRANCH=develop
- uses: docker/build-push-action@v5
with:
context: ./scripts
cache-from: type=gha
cache-to: type=gha,mode=max
- uses: docker/build-push-action@v5
with:
context: ./tokenbridge
cache-from: type=gha
cache-to: type=gha,mode=max
# Use default branch from test-node.bash
build-args: |
TOKEN_BRIDGE_BRANCH=v1.2.2
- name: Smoke Test with Latest Espresso Image
run: |
${{ matrix.test-script }}
timeout-minutes: 30
- name: Dump docker logs on failure
if: failure()
run: |
docker compose logs