CI #58
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: CI | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| repository-projects: read | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - staging | |
| schedule: | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: | |
| env: | |
| CARGO_INCREMENTAL: 0 | |
| CARGO_NET_GIT_FETCH_WITH_CLI: true | |
| CARGO_NET_RETRY: 10 | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: 1 | |
| RUSTDOCFLAGS: -D warnings | |
| RUSTFLAGS: -D warnings | |
| RUSTUP_MAX_RETRIES: 10 | |
| defaults: | |
| run: | |
| shell: bash --noprofile --norc -CeEuo pipefail {0} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| uses: taiki-e/github-actions/.github/workflows/test.yml@main | |
| with: | |
| direct-minimal-versions: false | |
| minimal-versions: false | |
| no-std: false | |
| tidy: | |
| uses: taiki-e/github-actions/.github/workflows/tidy.yml@main | |
| check-help: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: taiki-e/checkout-action@v1 | |
| - name: Install Rust | |
| run: rustup update stable --no-self-update && rustup default stable | |
| - name: Generate HELP.md | |
| run: cargo run --features=clap-markdown -- --markdown-help > HELP.md.new | |
| - name: Check if HELP.md needs updating | |
| run: | | |
| if ! diff -u HELP.md HELP.md.new; then | |
| echo "Error: HELP.md is out of date. Please regenerate it with:" | |
| echo " cargo run --features=clap-markdown -- --markdown-help > HELP.md" | |
| exit 1 | |
| fi |