typos/.github/workflows/codegen.yml

57 lines
1.7 KiB
YAML
Raw Normal View History

2021-07-01 17:32:14 -04:00
name: codegen
on:
pull_request:
paths:
- 'Cargo.lock'
- '**/assets/**'
2021-07-01 17:32:14 -04:00
- '**/codegen/**'
- '**/verify/**'
- '**/*codegen.rs'
push:
branches:
- master
paths:
- 'Cargo.lock'
- '**/assets/**'
2021-07-01 17:32:14 -04:00
- '**/codegen/**'
- '**/verify/**'
- '**/*codegen.rs'
schedule:
- cron: '9 9 9 * *'
jobs:
codegen:
name: Verify Code-gen
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
2022-03-29 15:56:17 -04:00
toolchain: 1.59.0 # MSRV
2021-07-01 17:32:14 -04:00
profile: minimal
override: true
2021-07-02 11:28:31 -04:00
components: rustfmt
2021-07-01 17:32:14 -04:00
- uses: Swatinem/rust-cache@v1
- name: Verify typos-dict
run: |
cargo run --package typos-dict-codegen -- --output crates/typos-dict/src/dict_codegen.rs --check
- name: Verify typos-vars
run: |
cargo run --package typos-vars-codegen -- --output crates/typos-vars/src/vars_codegen.rs --check
- name: Verify typos-dict-verify
run: |
cargo run --package typos-dict-verify -- --input crates/typos-dict/assets/words.csv --output crates/typos-dict/assets/words.csv --check
- name: Verify codespell-dict
run: |
cargo run --package codespell-codegen -- --output crates/codespell-dict/src/dict_codegen.rs --check
- name: Verify misspell-dict
run: |
cargo run --package misspell-codegen -- --output crates/misspell-dict/src/dict_codegen.rs --check
- name: Verify wikipedia-dict
run: |
cargo run --package wikipedia-codegen -- --output crates/wikipedia-dict/src/dict_codegen.rs --check
- name: Verify varcon-dict
run: |
cargo run --package varcon-codegen -- --output crates/varcon/src/codegen.rs --check