-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (42 loc) · 1.25 KB
/
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
43
44
45
46
47
48
49
50
51
name: Testing
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
test:
name: Run Bats tests
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v4.2.2
- name: Install Pandoc
uses: pandoc/actions/setup@v1.1.0
with:
version: 3.5
- name: Install Bats
id: setup-bats
uses: bats-core/bats-action@3.0.0
with:
bats-version: v1.11.0
support-path: ${{ github.workspace }}/tests/bats-support
assert-path: ${{ github.workspace }}/tests/bats-assert
detik-path: ${{ github.workspace }}/tests/bats-detik
file-path: ${{ github.workspace }}/tests/bats-file
- name: Install other dependencies
run: |
echo "::group::Install graphviz"
sudo apt-get install graphviz
echo "::endgroup::"
echo "::group::Install inotify-tools"
sudo apt-get install inotify-tools
echo "::endgroup::"
- name: Run tests
env:
BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }}
run: bats --tap test