generated from rethab/bash-action
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 996 Bytes
/
verify.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
name: Verify
on: push
jobs:
static_checks:
name: Static Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: bash formatting
run: docker run -v "$PWD":/mnt -w /mnt mvdan/shfmt -ci -- *.sh
- name: shellcheck
run: docker run -v "$PWD":/mnt -w /mnt koalaman/shellcheck -- *.sh test/*.bats
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Bats
run: |
git clone https://github.com/bats-core/bats-core.git
cd bats-core
sudo ./install.sh /usr/local
- name: Run Tests
run: bats test/*.bats
self_check:
name: Run this Action
runs-on: ubuntu-latest
needs: [static_checks, tests]
steps:
- uses: actions/checkout@v4
- uses: ./
with:
env_file: test/.env
transcrypt_key: s07Fjs/lwSJs+tpOZf2s9z0e0Ak6wpen/F3TqXPu