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') 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 From 9139d76cb1cf462820b2ddfa80d9a8d55bb30996 Mon Sep 17 00:00:00 2001 From: FxQnLr <39925636+FxQnLr@users.noreply.github.com> Date: Mon, 12 Feb 2024 15:55:54 +0100 Subject: FIX pull_request.yml --- .github/workflows/pull_request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 732e9e9..7196d4e 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -2,13 +2,13 @@ name: check on: [ pull_request, workflow_dispatch ] -nv: +env: SCCACHE_GHA_ENABLED: "true" RUSTC_WRAPPER: "sccache" SQLX_OFFLINE: "true" CARGO_TERM_COLOR: always -obs: +jobs: check: runs-on: ubuntu-latest steps: -- cgit v1.2.3