Try new unstable Clippy action, update PR job logic

This commit is contained in:
Deirdre Connolly 2020-05-15 23:15:35 -04:00 committed by Deirdre Connolly
parent 796eddfb25
commit cdc1f38e72
1 changed files with 6 additions and 5 deletions

View File

@ -12,7 +12,8 @@ jobs:
build: build:
name: Google Cloud 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 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
@ -78,10 +79,10 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
with: with:
toolchain: stable toolchain: nightly
components: clippy
override: true override: true
- name: Run clippy - name: Run clippy
uses: actions-rs/clippy-check@v1 uses: actions-rs/clippy@master # Next gen Clippy Action, unstable
with: with:
token: ${{ secrets.GITHUB_TOKEN }} args: --all-features --all-targets
args: --all-features