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:
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