-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (34 loc) · 969 Bytes
/
main.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
name: Run blib tests
on: [push, workflow_dispatch]
permissions:
contents: read
pull-requests: read
jobs:
unit-test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt update
sudo apt -y install pandoc texlive-latex-base texlive-latex-recommended shellcheck curl sqlite3
bash -version
- name: Install bats
run: |
cd bats/
tar -xvf bats-core.tar.gz
cd bats-core
sudo ./install.sh /usr
cd ../../
- name: Install blib
run: sudo ./installer install
- name: Configure the test environment
run: sudo cp .github/user_test_data.bash /usr/lib/blib/tests/
- name: Test blib
run: blib test
- name: Uninstall blib
run: sudo ./installer uninstall
- name: Make sure blib is uninstalled
run: '[ ! -e /usr/lib/blib ]'