Skip to content

Commit

Permalink
fix: delete release CI script and add skip_check to lint and unit…
Browse files Browse the repository at this point in the history
…-test (#211)

* Delete `release` CI script, and add `skip_check` to lint and unit-test.

* Try skip-check.

* Revert "Try skip-check."

This reverts commit e3e0bfb.
  • Loading branch information
silathdiir authored Aug 14, 2023
1 parent 7653cd6 commit 11ad009
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 75 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,23 @@ env:
CARGO_INCREMENTAL: false

jobs:
skip_check:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
cancel_others: 'true'
concurrent_skipping: 'same_content_newer'
paths_ignore: '["**/README.md"]'

fmt:
needs: [skip_check]
if: |
github.event.pull_request.draft == false ||
github.event.action == 'ready_for_review'
github.event.pull_request.draft == false &&
(github.event.action == 'ready_for_review' || needs.skip_check.outputs.should_skip != 'true')
name: fmt
runs-on: ubuntu-latest
steps:
Expand All @@ -36,9 +49,10 @@ jobs:
cargo fmt --all -- --check
clippy:
needs: [skip_check]
if: |
github.event.pull_request.draft == false ||
github.event.action == 'ready_for_review'
github.event.pull_request.draft == false &&
(github.event.action == 'ready_for_review' || needs.skip_check.outputs.should_skip != 'true')
name: clippy
runs-on: ubuntu-latest
steps:
Expand Down
55 changes: 0 additions & 55 deletions .github/workflows/release.yml

This file was deleted.

16 changes: 14 additions & 2 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,22 @@ env:
CARGO_INCREMENTAL: false

jobs:
skip_check:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
cancel_others: 'true'
concurrent_skipping: 'same_content_newer'
paths_ignore: '["**/README.md"]'

linux-test:
if: |
github.event.pull_request.draft == false ||
github.event.action == 'ready_for_review'
github.event.pull_request.draft == false &&
(github.event.action == 'ready_for_review' || needs.skip_check.outputs.should_skip != 'true')
name: Linux Test on ${{ matrix.rust }}
runs-on: ubuntu-latest
strategy:
Expand Down
14 changes: 0 additions & 14 deletions release.sh

This file was deleted.

0 comments on commit 11ad009

Please sign in to comment.