This repository was archived by the owner on Mar 23, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
59 lines (51 loc) · 1.51 KB
/
tests-bin.yml
File metadata and controls
59 lines (51 loc) · 1.51 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Helper Script Tests
on:
workflow_dispatch:
pull_request:
paths:
- 'bin/docker-helper.sh'
- '.github/workflows/tests-bin.yml'
- 'tests/bin/*.bats'
push:
paths:
- 'bin/docker-helper.sh'
- '.github/workflows/tests-bin.yml'
- 'tests/bin/*.bats'
branches:
- main
- release/*
jobs:
script-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup BATS
run: |
git clone https://github.com/bats-core/bats-core.git "$HOME"/bats-core
cd "$HOME"/bats-core
sudo ./install.sh /usr/local
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version-file: '.python-version'
- name: Install helper script dependencies
run: pip install --upgrade setuptools setuptools_scm
- name: Run bats tests
run: |
bats --report-formatter junit -r tests/bin/ --output .
mv report.xml tests-junit-base.xml
- name: Archive Test Results
uses: actions/upload-artifact@v7
if: success() || failure()
with:
name: test-results-tests-bin
path: tests-junit-*.xml
retention-days: 30
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: success() || failure()
with:
files: tests-junit-*.xml
check_name: "Helper Script Tests"
action_fail_on_inconclusive: true