diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 74161ef9..5ba45260 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -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 diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml new file mode 100644 index 00000000..af14b1f7 --- /dev/null +++ b/.github/workflows/conventional-commits.yml @@ -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/PRConventionalCommits@1.1.0 + with: + task_types: '["feat","fix","perf","chore","revert"]' + add_label: 'false'