-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 982 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
name: TEST
on: [push, workflow_call]
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Wait for build
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
check-name: 'build'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 5
- name: Download build artifacts
uses: dawidd6/action-download-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: build.yml
workflow_conclusion: success
name: ${{ github.head_ref }}.${{ github.sha }}
path: /tmp/
if_no_artifact_found: fail
- name: Run tests
run: |
docker load --input /tmp/image.tar
./ci_run_tests.sh
- name: Upload coverage reports
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true