Skip to content

Commit 9f7d77c

Browse files
author
Chris Cowan
committed
Added GitHub Actions workflow
1 parent 12c8ca2 commit 9f7d77c

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/main.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: CI
3+
'on':
4+
push:
5+
paths:
6+
- '**.sh'
7+
- '**.yml'
8+
- '**.yaml'
9+
- '**.c'
10+
- '**.h'
11+
- '**Makefile'
12+
- '**.csproj'
13+
- '**.sln'
14+
pull_request: {}
15+
workflow_dispatch: {}
16+
jobs:
17+
shellcheck:
18+
name: ShellCheck
19+
runs-on: ubuntu-latest
20+
if: ${{ github.event_name != 'workflow_dispatch' }}
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Run ShellCheck
24+
uses: ludeeus/action-shellcheck@master
25+
env:
26+
SHELLCHECK_OPTS: -x
27+
with:
28+
check_together: true
29+
continue-on-error: true
30+
yamllint:
31+
name: YAML Lint
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
- name: Install yamllint
36+
run: sudo apt-get install yamllint -y
37+
- name: Lint YAML files
38+
run: yamllint .

0 commit comments

Comments
 (0)