@@ -2,36 +2,40 @@ name: CI
22run-name : CI triggered from @${{ github.actor }} of ${{ github.head_ref }}
33
44on :
5- workflow_dispatch :
6- merge_group :
7- pull_request :
8- push :
9- branches :
10- - master
11- - develop
12-
5+ workflow_dispatch :
6+ merge_group :
7+ pull_request :
8+ push :
9+ branches :
10+ - master
11+ - develop
1312
1413jobs :
1514 build_and_run :
1615 runs-on : ubuntu-8
16+ strategy :
17+ matrix :
18+ pos : [pos, no-pos]
19+ l3node : [l3node, l3node-token-6, no-l3node]
20+ tokenbridge : [tokenbridge, no-tokenbridge]
1721
1822 steps :
19- - name : Checkout
20- uses : actions/checkout@v4
21- with :
22- submodules : recursive
23+ - name : Checkout
24+ uses : actions/checkout@v4
25+ with :
26+ submodules : recursive
2327
24- - name : Set up Docker Buildx
25- uses : docker/setup-buildx-action@v3
26- with :
27- driver-opts : network=host
28+ - name : Set up Docker Buildx
29+ uses : docker/setup-buildx-action@v3
30+ with :
31+ driver-opts : network=host
2832
29- - name : Cache Docker layers
30- uses : actions/cache@v3
31- with :
32- path : /tmp/.buildx-cache
33- key : ${{ runner.os }}-buildx-${{ hashFiles('Dockerfile') }}
34- restore-keys : ${{ runner.os }}-buildx-
35-
36- - name : Startup Nitro testnode
37- run : ${{ github.workspace }}/.github/workflows/testnode.bash
33+ - name : Cache Docker layers
34+ uses : actions/cache@v3
35+ with :
36+ path : /tmp/.buildx-cache
37+ key : ${{ runner.os }}-buildx-${{ hashFiles('Dockerfile') }}
38+ restore-keys : ${{ runner.os }}-buildx-
39+
40+ - name : Startup Nitro testnode
41+ run : ${{ github.workspace }}/.github/workflows/testnode.bash --init-force ${{ (matrix.l3node == 'l3node' && '--l3node') || (matrix.l3node == 'l3node-token-6' && '--l3node --l3-fee-token --l3-token-bridge --l3-fee-token-decimals 6') || '' }} ${{ matrix.tokenbridge == 'tokenbridge' && '--tokenbridge' || '--no-tokenbridge' }} --no-simple --detach ${{ matrix.pos == 'pos' && '--pos' || '' }}
0 commit comments