From e50a868f69b602cc0bc84d51e9940878924f49ef Mon Sep 17 00:00:00 2001 From: FxQnLr Date: Mon, 12 Feb 2024 15:04:10 +0100 Subject: change to check on every pull request --- .github/workflows/pull_request.yml | 63 ++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 33 deletions(-) (limited to '.github/workflows/pull_request.yml') diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 279e16d..732e9e9 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,35 +1,32 @@ name: check -on: - pull_request: - branches: [ "main" ] - workflow_dispatch: - -env: - SCCACHE_GHA_ENABLED: "true" - RUSTC_WRAPPER: "sccache" - SQLX_OFFLINE: "true" - CARGO_TERM_COLOR: always - -jobs: - check: - runs-on: ubuntu-latest - steps: - - name: Run sccache-cache - uses: mozilla-actions/sccache-action@v0.0.3 - - - uses: actions/checkout@v4 - - - run: cargo check - - run: cargo clippy - - check-release: - runs-on: ubuntu-latest - steps: - - name: Run sccache-cache - uses: mozilla-actions/sccache-action@v0.0.3 - - - uses: actions/checkout@v4 - - - run: cargo check --release - - run: cargo clippy --release \ No newline at end of file +on: [ pull_request, workflow_dispatch ] + +nv: + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" + SQLX_OFFLINE: "true" + CARGO_TERM_COLOR: always + +obs: + check: + runs-on: ubuntu-latest + steps: + - name: Run sccache-cache + uses: mozilla-actions/sccache-action@v0.0.3 + + - uses: actions/checkout@v4 + + - run: cargo check + - run: cargo clippy + + check-release: + runs-on: ubuntu-latest + steps: + - name: Run sccache-cache + uses: mozilla-actions/sccache-action@v0.0.3 + + - uses: actions/checkout@v4 + + - run: cargo check --release + - run: cargo clippy --release -- cgit v1.2.3