form: add an example of optional forms #988
Workflow file for this run
This file contains hidden or 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: Examples | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| merge_group: | |
| types: [checks_requested] | |
| push: | |
| branches: [main] | |
| jobs: | |
| check-examples: | |
| name: Check examples | |
| runs-on: ubuntu-latest | |
| steps: | |
| # required packages | |
| - run: sudo apt install sqlite3 | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2 | |
| - name: Install just | |
| uses: taiki-e/install-action@650c5ca14212efbbf3e580844b04bdccf68dac31 # v2.67.18 | |
| with: | |
| tool: just | |
| - name: Test examples | |
| env: | |
| RUSTFLAGS: -A dead-code -A unused-variables | |
| run: just test |