Skip to content

Commit

Permalink
CI: Decouple style and functionality checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jserv committed Feb 22, 2024
1 parent 9f2299f commit 9baafcb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .ci/build-n-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function build_mod()

function run_tests()
{
make check || exit 2
make check >/tmp/simplefs-out || (cat /tmp/simplefs-out ; exit 2)
}

build_mod
Expand Down
25 changes: 15 additions & 10 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
name: main

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

workflow_dispatch:
on: [push, pull_request]

jobs:
validate:
simplefs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install-dependencies
run: |
sudo apt-get install build-essential
- name: automated test
run: |
.ci/build-n-run.sh
shell: bash

coding_style:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
- name: validate coding style and functionality
- name: coding convention
run: |
sudo apt-get install -q -y clang-format-12
.ci/check-newline.sh
.ci/check-format.sh
.ci/build-n-run.sh
shell: bash

0 comments on commit 9baafcb

Please sign in to comment.