Try new unstable Clippy action, update PR job logic
@@ -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
