Skip to content

Commit

Permalink
Run cargo marker with --all-targets --all-features [--locked] in Gi…
Browse files Browse the repository at this point in the history
…tHub action (#341)

It looks like this is the default way linting should be run
  • Loading branch information
Veetaha authored Dec 23, 2023
1 parent 1e6ad97 commit 1287fbb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ runs:
- run: ${GITHUB_ACTION_PATH:?}/scripts/release/install.${{ runner.os == 'Windows' && 'ps1' || 'sh' }}
shell: bash

- run: cargo marker
# Run the check with `--locked` only if there is a `Cargo.lock` file present in the
# repository. Not everyone checks in the `Cargo.lock` file into the version control,
# but if they do they would want this command to run with `--locked` to ensure that
# the lock file is up to date.
- run: |
cargo marker -- --all-targets --all-features${{
hashFiles('./Cargo.lock') != '' && ' --locked' || ''
}}
if: ${{ inputs.install-only == 'false' }}
shell: bash

0 comments on commit 1287fbb

Please sign in to comment.