Remove nightly from Rust lint checks #750
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: '[l10n] Localization' | |
on: | |
pull_request: | |
paths: | |
- 'locales/**' | |
- '.github/workflows/locales.yaml' | |
push: | |
branches: | |
- develop | |
- prod | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Rust Toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Cargo Cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
locales/validator/target | |
key: ${{ runner.os }}-locales-default-${{ hashFiles('locales/validator/**/Cargo.toml') }} | |
- name: Run Check | |
run: cd locales/validator && cargo run | |
clippy_lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: -D warnings | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Rust Toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: Cargo Cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
locales/validator/target | |
key: ${{ runner.os }}-locales-lint-${{ hashFiles('locales/validator/**/Cargo.toml') }} | |
- name: Rustfmt | |
run: cd ftml && cargo fmt --all -- --check | |
- name: Clippy | |
run: cd ftml && cargo clippy --no-deps -- -A unused_imports | |
# See deepwell.yaml for explainer on unused_imports. |