Skip to content

Commit

Permalink
setup commit lint
Browse files Browse the repository at this point in the history
  • Loading branch information
todor-a committed Aug 20, 2024
1 parent bb69393 commit 417abf2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: Check and Lint

on:
pull_request:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
push:
branches:
- main

name: Check and Lint

jobs:
typos:
name: Spell Check
Expand Down Expand Up @@ -44,3 +49,12 @@ jobs:
with:
reporter: 'github-pr-review'
github_token: ${{ secrets.GITHUB_TOKEN }}

validate_pr_title:
name: Validate PR title
runs-on: ubuntu-latest
if: github.event_name == 'pull_request_target'
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 7 additions & 8 deletions .github/workflows/pr.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,16 @@ env:

jobs:
build_and_test:
name: Rust project - latest
name: Rust project
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
# - beta
# - nightly
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
- name: setup toolchain
uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- run: cargo build --verbose
- run: cargo test --verbose

0 comments on commit 417abf2

Please sign in to comment.