Skip to content

Commit

Permalink
chore: add conventional commits check (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-jason authored Dec 22, 2023
1 parent 6531d32 commit f94d5e7
Show file tree
Hide file tree
Showing 2 changed files with 21 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
16 changes: 16 additions & 0 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: PR Title

on:
pull_request:
types: [opened, synchronize, reopened, edited]

jobs:
build:
name: Conventional Commits
runs-on: ubuntu-latest
steps:
- name: Conventional Commit Validation
uses: ytanikin/[email protected]
with:
task_types: '["feat","fix","perf","chore","revert"]'
add_label: 'false'

0 comments on commit f94d5e7

Please sign in to comment.