Skip to content

Commit

Permalink
CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
boozook committed Jul 12, 2024
1 parent 215bd89 commit bf9caaa
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -493,13 +493,13 @@ jobs:
tool_name: Rustfmt
cleanup: false

- name: Post Check
if: steps.check.outcome == 'failure'
run: exit 1
# - name: Post Check
# if: steps.check.outcome == 'failure'
# run: exit 1

clippy:
name: Clippy
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
defaults:
run:
shell: bash
Expand All @@ -521,7 +521,6 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref || github.ref }}
# fetch-depth: 2

- name: Install Clippy
run: rustup component add clippy
Expand Down Expand Up @@ -557,7 +556,6 @@ jobs:
-p=playdate-tool
--bins --examples --all-targets
-- -Aclippy::cargo
|| (echo "::error::Rust format error." && exit 1)
# needed after clippy fix
- name: fmt
Expand All @@ -572,6 +570,6 @@ jobs:
with:
filter_mode: diff_context
fail_on_error: false
tool_name: Clippy
tool_name: Clippy & fmt
cleanup: false

0 comments on commit bf9caaa

Please sign in to comment.