Skip to content

Commit

Permalink
👷 Create pre-merge workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
albertsgarde committed Jan 28, 2024
1 parent bfee3cd commit 019ec70
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pre-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Pre-merge

on:
pull_request:
branches: [ "main", "ci-test" ]

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "rust-dependencies"
- name: Build
run: cargo build --verbose
- name: Clippy
run: cargo clippy --no-deps
- name: Format check
run: cargo fmt --check
- name: Run tests
run: cargo test --verbose

0 comments on commit 019ec70

Please sign in to comment.