Skip to content

Commit

Permalink
Updated pull request worklfow
Browse files Browse the repository at this point in the history
  • Loading branch information
f-str committed Mar 25, 2024
1 parent 081772c commit 0a0ebe7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ on:
push:
branches-ignore:
- 'main'
pull_request:
branches:
- 'main'
workflow_call:


jobs:
build:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/pull-requests-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Pull-Request Main CI/CD Pipeline

on:
pull_request:
branches:
- 'main'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build
run: cargo build --release

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Format check
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy -- -D warnings

0 comments on commit 0a0ebe7

Please sign in to comment.