-
Notifications
You must be signed in to change notification settings - Fork 179
41 lines (40 loc) · 1.09 KB
/
optimism-testing.yml
File metadata and controls
41 lines (40 loc) · 1.09 KB
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
name: Optimism testing
on:
push:
branches:
- changeset-release/*
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# test against a known version and a current master
OPTIMISM_GIT_HEAD: ["7abde925dccb57bac26661f22906686ff7e23ad0", "master"]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 6.32.4
- name: Setup Node.js 16.x
uses: actions/setup-node@v3.0.0
with:
node-version: 16.x
- name: Build project
run: |
pnpm install
pnpm build
- name: Setup optimism node
run: |
cd ..
git clone https://github.com/ethereum-optimism/optimism.git
cd optimism/ops
git checkout ${{ matrix.OPTIMISM_GIT_HEAD }}
docker-compose pull
docker-compose up &
scripts/wait-for-sequencer.sh && echo "System is ready to accept transactions"
- name: Test optimism
run: |
cd waffle-optimism
pnpm run test:optimism