Skip to content

Merge pull request #1631 from scpwiki/sea-orm-upgrade #693

Merge pull request #1631 from scpwiki/sea-orm-upgrade

Merge pull request #1631 from scpwiki/sea-orm-upgrade #693

Workflow file for this run

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