Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Dec 7, 2023
1 parent 43d166b commit 78a908d
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/rtx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- uses: Swatinem/rust-cache@v2
with:
shared-key: unit
Expand All @@ -33,33 +36,18 @@ jobs:
# tool: nextest,just,cargo-deny,cargo-msrv,cargo-machete
# - name: Install direnv/shfmt
# run: sudo apt-get update; sudo apt-get install direnv shfmt
- run: sudo apt-get update; sudo apt-get install shfmt shellcheck
- run: cargo nextest run --all-features
env:
RUST_BACKTRACE: "1"
- run: just lint
- run: cargo deny check
- run: cargo msrv verify
- run: cargo machete --with-metadata

lint-fix:
runs-on: buildjet-4vcpu-ubuntu-2204
timeout-minutes: 10
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}

- uses: Swatinem/rust-cache@v2
with:
shared-key: unit
save-if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
cache-provider: buildjet
- run: sudo apt-get update; sudo apt-get install shfmt shellcheck
- uses: taiki-e/install-action@just
- run: just lint-fix render-all
- uses: EndBug/add-and-commit@v9
- run: just render-all linf-fix
- if: github.event_name == 'pull_request'
uses: EndBug/add-and-commit@v9
with:
push: true

Expand Down

0 comments on commit 78a908d

Please sign in to comment.