-
Notifications
You must be signed in to change notification settings - Fork 53
42 lines (34 loc) · 997 Bytes
/
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
name: Cargo Test
on:
workflow_dispatch:
jobs:
test:
runs-on:
labels: movement-runner
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
submodules: 'recursive'
token: ${{ secrets.CI_PAT }}
ref: ${{ github.ref }}
- name: Setup
uses: ./.github/actions/setup-linux-x86_64
# run the ANR-based subnet tests
- name: Build and Test Subnet
run: |
cd ./m1
./scripts/tests.debug.sh
- name: Update Badge
run: |
if [ $? -eq 0 ]; then
sed -i 's/badge\/tests-[a-zA-Z]*/badge\/tests-Passing-brightgreen/g' README.md
else
sed -i 's/badge\/tests-[a-zA-Z]*/badge\/tests-Failing-red/g' README.md
fi
if: ${{ always() }}
- name: Trigger release
uses: ./.github/actions/trigger-workflow
with:
workflowFileName: release.yml
token: ${{ secrets.CI_PAT }}