Skip to content

Commit

Permalink
Update main workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
elmomoilanen committed Jun 10, 2023
1 parent 9411c42 commit f086f88
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,36 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
workflow_call:

env:
CARGO_TERM_COLOR: always

jobs:
check_steps:
check:
name: Run lints, checks and tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Update local toolchain
run: |
rustup update
rustup component add clippy
rustup component add rustfmt
- name: Toolchain info
run: |
cargo --version --verbose
rustc --version
cargo clippy --version
- name: Lint
run: |
cargo fmt -- --check
cargo clippy -- -D warnings
- name: Test
run: |
cargo check
cargo test
- name: Build
run: |
cargo build --verbose

0 comments on commit f086f88

Please sign in to comment.