Skip to content

Commit 154153f

Browse files
committed
CI: Add a simple GitHub action to check cfbs.json with cfbs
This adds a simple GitHub action and runs it on all opened and reopened pull requests. It verifies the `cfbs.json` with cfbs: * status * validate * pretty Ticket: CFE-4306 Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
1 parent 85f9aec commit 154153f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Continuous Integration
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened]
6+
7+
jobs:
8+
unit_tests:
9+
name: Run Unit Tests
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
submodules: recursive
15+
- name: Install dependencies
16+
run: sudo apt-get update -y && sudo apt-get install -y python
17+
- name: Install cfbs
18+
run: pip install cfbs
19+
- name: Check the status with cfbs
20+
run: cfbs status
21+
- name: Validate with cfbs
22+
run: cfbs validate
23+
- name: Check the formatting
24+
run: cfbs --check pretty ./cfbs.json

0 commit comments

Comments
 (0)