-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 781 Bytes
/
Copy pathci.yml
File metadata and controls
27 lines (27 loc) · 781 Bytes
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
name: CI
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: ShellCheck
run: shellcheck dockcode
- name: shfmt
run: |
curl -sSfL https://github.com/mvdan/sh/releases/download/v3.6.0/shfmt_v3.6.0_linux_amd64 -o /usr/local/bin/shfmt
chmod +x /usr/local/bin/shfmt
shfmt -d dockcode
test:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout repo and modules
uses: actions/checkout@v6
with:
# 'recursive' checks out all submodules, including nested ones (bats)
submodules: recursive
- name: Run tests
run: |
chmod +x ./test/bats/bin/bats
./test/bats/bin/bats test