Skip to content

Commit 9baafcb

Browse files
committed
CI: Decouple style and functionality checks
1 parent 9f2299f commit 9baafcb

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

.ci/build-n-run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function build_mod()
77

88
function run_tests()
99
{
10-
make check || exit 2
10+
make check >/tmp/simplefs-out || (cat /tmp/simplefs-out ; exit 2)
1111
}
1212

1313
build_mod

.github/workflows/main.yaml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
name: main
22

3-
on:
4-
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
8-
9-
workflow_dispatch:
3+
on: [push, pull_request]
104

115
jobs:
12-
validate:
6+
simplefs:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: install-dependencies
11+
run: |
12+
sudo apt-get install build-essential
13+
- name: automated test
14+
run: |
15+
.ci/build-n-run.sh
16+
shell: bash
17+
18+
coding_style:
1319
runs-on: ubuntu-latest
1420
steps:
1521
- name: checkout code
1622
uses: actions/checkout@v4
17-
- name: validate coding style and functionality
23+
- name: coding convention
1824
run: |
1925
sudo apt-get install -q -y clang-format-12
2026
.ci/check-newline.sh
2127
.ci/check-format.sh
22-
.ci/build-n-run.sh
2328
shell: bash

0 commit comments

Comments
 (0)