Skip to content

Commit

Permalink
chore(ci): updated GitHub Actions Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jgeluk committed Dec 4, 2024
1 parent 64aa41d commit 501c3cf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/check-commits.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
name: "Check Commits"
on: [push]

jobs:
cog_check_job:
check-commits:
runs-on: ubuntu-latest
name: check conventional commit compliance
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0

- name: Conventional commits check
uses: cocogitto/cocogitto-action@v3
5 changes: 1 addition & 4 deletions .github/workflows/release-changelog.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Release Changelog"
on:
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -9,18 +9,15 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Cocogitto release
id: release
uses: cocogitto/cocogitto-action@v3
with:
release: true
git-user: 'Release Bot'
git-user-email: 'jacobus.geluk@ekgf.org'

- name: Generate Changelog
run: cog changelog --at ${{ steps.release.outputs.version }} -t full_hash > GITHUB_CHANGELOG.md

- name: Upload github release
uses: softprops/action-gh-release@v1
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust CI
name: "Rust CI"
on:
push:
branches:
Expand All @@ -23,15 +23,15 @@ jobs:
uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Run rustfmt
- name: Format
uses: actions-rust-lang/rustfmt@v1
- name: Run Clippy linter
- name: Lint
uses: auguwu/clippy-action@1.4.0
with:
token: ${{secrets.GITHUB_TOKEN}}
- name: Run tests
- name: Test
uses: cargo test --all-features
- name: Build project
- name: Build
uses: actions-rs/cargo@v1
with:
command: build

0 comments on commit 501c3cf

Please sign in to comment.