Skip to content

Commit

Permalink
chore: add conventional commits check
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-jason committed Dec 21, 2023
1 parent 6531d32 commit 49d6330
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,25 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: 12
platform: x64

- name: Check out repository
uses: actions/checkout@v3

- name: Install dependencies
run: sudo apt install -y libaio-dev

- name: Config project
run: cmake -B build -S .

- name: Build project
run: cmake --build build -j `nproc`

- name: Test test
run: ctest --test-dir build --output-on-failure
15 changes: 15 additions & 0 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Conventional Commits Check

on:
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ytanikin/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
task_types: '["feat","fix","chore","revert"]'

0 comments on commit 49d6330

Please sign in to comment.