chore: ignore dprint config file #28
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: Validate and build | |
on: | |
workflow_dispatch: | |
push: | |
paths-ignore: | |
- '**/*.md' | |
branches: | |
- '**' | |
concurrency: | |
group: rustgems-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
validate: | |
if: "!contains(github.event.head_commit.message, 'NO_CI')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
components: rustfmt, clippy | |
- uses: extractions/setup-just@v1 | |
- name: fmt validation | |
run: cargo fmt -- --check | |
- name: clippy validation | |
run: just clippy-release | |
- uses: actions-rs/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: taiki-e/install-action@nextest | |
- name: Test | |
run: just test-all --release | |
build: | |
if: "!contains(github.event.head_commit.message, 'NO_CI')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- uses: extractions/setup-just@v1 | |
- name: Build in release mode | |
run: just build-release |