This repository has been archived by the owner on Aug 25, 2024. It is now read-only.
build: add release-plz #17
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 | |
tags-ignore: | |
- v* | |
pull_request: | |
branches: | |
- main | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
# Nightly needed for `cargo +nightly fmt` below | |
- name: Install Rust toolchain | |
run: | | |
rustup update | |
rustup toolchain install nightly --profile minimal | |
rustup component add rustfmt --toolchain nightly | |
- name: Install just | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: just | |
- name: Set up Rust cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Build | |
run: just check | |
- name: Check code format | |
run: just fmt_check | |
- name: Run linter | |
run: just lint | |
- name: Run tests | |
run: just test |