Skip to content

Merge pull request #91 from mobusoperandi/eelco-homage #76

Merge pull request #91 from mobusoperandi/eelco-homage

Merge pull request #91 from mobusoperandi/eelco-homage #76

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
- name: cache
uses: FrancisRussell/[email protected]
with:
command: cache
- name: toolchain
uses: FrancisRussell/[email protected]
with:
command: install-rustup
toolchain: stable
- name: install Nix
uses: cachix/install-nix-action@v23
- name: test
uses: FrancisRussell/[email protected]
with:
command: cargo test
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: cache
uses: FrancisRussell/[email protected]
with:
command: cache
- name: toolchain
uses: FrancisRussell/[email protected]
with:
command: install-rustup
toolchain: stable
components: clippy
- name: test
uses: FrancisRussell/[email protected]
with:
command: cargo clippy
args: --all-targets -- --deny warnings
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: toolchain
uses: FrancisRussell/[email protected]
with:
command: install-rustup
toolchain: stable
- name: fmt
uses: FrancisRussell/[email protected]
with:
command: cargo fmt
args: --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