Skip to content

Commit

Permalink
fix cargo action args
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Johnson committed Jun 18, 2024
1 parent 6218cd6 commit 47c3751
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [ $default-branch ]
branches: [ main ]
pull_request:
branches: [ $default-branch ]
branches: [ main ]
workflow_dispatch:

env:
Expand All @@ -27,7 +27,8 @@ jobs:
- name: rustfmt check
uses: actions-rs/cargo@v1
with:
command: fmt -- --check
command: fmt
args: --all -- --check
check:
name: check and run tests
runs-on: ubuntu-latest
Expand Down Expand Up @@ -56,7 +57,8 @@ jobs:
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy -- -D warnings
command: clippy
args: -- -D warnings

- name: Test
uses: actions-rs/cargo@v1
Expand Down

0 comments on commit 47c3751

Please sign in to comment.