-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (51 loc) · 1.37 KB
/
ci.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: CI
on:
push:
branches: [master, develop]
pull_request:
branches: [master]
jobs:
Defs:
name: Defs Validation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run defs tests
run: .github/scripts/def_check.sh SOURCES/defs
Shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
needs: Defs
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check scripts with Shellcheck
uses: essentialkaos/shellcheck-action@v1
with:
files: SOURCES/mass-builder SOURCES/rbdef SOURCES/rbbuild SOURCES/libexec/*.shx SOURCES/libexec/builders/*.shx
Perfecto:
name: Perfecto
runs-on: ubuntu-latest
needs: Defs
steps:
- name: Code checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Check specs with Perfecto
uses: essentialkaos/perfecto-action@v2
with:
files: rbbuild.spec rbbuild-defs.spec
Typos:
name: Typos
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check spelling
uses: crate-ci/typos@master