Handle images with multiple options #62
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_and_test: | |
name: Build, check, and test | |
runs-on: ubuntu-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository. | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
filter: blob:none | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-hack,just | |
- uses: Swatinem/rust-cache@v2 | |
- run: just build | |
- run: just check | |
- run: just fmt --check | |
id: fmt | |
- run: just fmt | |
if: failure() | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
if: failure() | |
- run: just test |