forked from os-autoinst/os-autoinst
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 1.06 KB
/
ci.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
---
name: ci
# yamllint disable-line rule:truthy
on: [push, pull_request]
env:
# Set to 1 to temporarily ignore warnings
PERL_TEST_WARNINGS_ONLY_REPORT_WARNINGS: 0
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Static checks, unit- and integration tests
run: tools/container_run_ci
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
# should not be necessary for public repos, but might help avoid sporadic upload token errors
token: ${{ secrets.CODECOV_TOKEN }}
files: ./build/cover_db/codecov.json
fail_ci_if_error: true
verbose: true
- run: |
tar cvf coverage.tar build/cover_db
- uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.tar
retention-days: 15
static-check-containers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test our container definitions
run: tools/static_check_containers