From cdc1f38e72a3fd95917f2c621c8cce7ab46c0315 Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Fri, 15 May 2020 23:15:35 -0400 Subject: [PATCH] Try new unstable Clippy action, update PR job logic --- .github/workflows/main.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f3b0557e..d34cfc9c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,8 @@ jobs: build: name: Google Cloud Build - if: github.head_ref || github.base_ref # This is a pull request, and would fail for external PRs. + # This is a pull request, and gcloud would fail for external PRs. + if: (!github.head_ref) || (!github.base_ref) runs-on: ubuntu-latest steps: - uses: actions/checkout@master @@ -78,10 +79,10 @@ jobs: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: - toolchain: stable + toolchain: nightly + components: clippy override: true - name: Run clippy - uses: actions-rs/clippy-check@v1 + uses: actions-rs/clippy@master # Next gen Clippy Action, unstable with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features + args: --all-features --all-targets