Skip to content

Merge pull request #89 from mobusoperandi/repl-example-parse-fail-fil… #73

Merge pull request #89 from mobusoperandi/repl-example-parse-fail-fil…

Merge pull request #89 from mobusoperandi/repl-example-parse-fail-fil… #73

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