Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
drcapybara committed Mar 5, 2024
1 parent 972cf8a commit 3d47b7f
Showing 1 changed file with 27 additions and 10 deletions.
37 changes: 27 additions & 10 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,38 @@
name: Tests
name: Rust project CI

on:
push:
branches: [ "master" ]
branches: [ main ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v2
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose

- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose

0 comments on commit 3d47b7f

Please sign in to comment.