-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 850 Bytes
/
ci.yml
File metadata and controls
34 lines (31 loc) · 850 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
28
29
30
31
32
33
34
name: CI
on:
push:
branches: [develop]
paths: ["**/*.sh"]
pull_request:
paths: ["**/*.sh"]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install shfmt
run: sudo apt-get update && sudo apt-get install -y shfmt
- name: Run shfmt
run: shfmt -d -ln posix -i 2 -bn $(find . -name '*.sh')
- name: Run ShellCheck
run: shellcheck -s sh $(find . -name '*.sh')
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure git
run: |
git config --global user.name "Test"
git config --global user.email "test@test.com"
- name: Run unit tests
run: sh tests/test_unit.sh
- name: Run integration tests
run: sh tests/test_integration.sh