Skip to content

Merge pull request #107 from mobusoperandi/multiline-result #101

Merge pull request #107 from mobusoperandi/multiline-result

Merge pull request #107 from mobusoperandi/multiline-result #101

Workflow file for this run

on:
push:
branches: [main]
pull_request:
jobs:
test:
strategy:
matrix:
runner: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: test
run: nix develop --command cargo test
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: clippy
run: nix develop --command cargo clippy --all-targets -- --deny warnings
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: fmt
run: nix develop --command cargo fmt --check
release:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
permissions:
pull-requests: write
contents: write
needs: [test, clippy, fmt]
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: rust