-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (42 loc) · 1.16 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
52
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/[email protected]
- name: Install Pandoc
uses: r-lib/actions/[email protected]
with:
pandoc-version: 3.1.6.1
- name: Get Bats repository
uses: actions/[email protected]
with:
repository: bats-core/bats-core
ref: v1.11.0
path: bats-core
- name: Install dependencies
run: |
echo "::group::Install BATS"
cd bats-core
./install.sh "$HOME"
printf '%s\n' "$HOME/bin" "$HOME/.local/bin" >> "$GITHUB_PATH"
echo "::endgroup::"
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
run: bats --tap test