-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 987 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
38
39
on:
pull_request:
branches:
- main
paths:
- "src/nata.sh"
- "examples/config.json"
- "test/test.bats"
push:
branches:
- main
paths:
- "src/nata.sh"
- "examples/config.json"
- "test/test.bats"
jobs:
my_test:
runs-on: ubuntu-latest
name: Install Bats and Run Tests
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Bats and Bats Libraries
id: setup-bats
uses: bats-core/[email protected]
with:
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: Run Bats Tests
shell: bash
env:
BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }}
TERM: xterm
run: bats test/test.bats