Merge pull request #2108 from scpwiki/dependabot/npm_and_yarn/framera… #1182
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: -A unused -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 locales/validator && cargo fmt --all -- --check | |
- name: Clippy | |
run: cd locales/validator && cargo clippy --no-deps |