Skip to content

chore: Update GitHub Actions #24

chore: Update GitHub Actions

chore: Update GitHub Actions #24

Workflow file for this run

---
name: CI
on:
push:
pull_request:
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup Rust"
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- name: "Build"
uses: actions-rs/cargo@v1
with:
command: build
lint:
name: "Lint"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup Rust"
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt, clippy
- name: "Run Rustfmt"
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: "Run Clippy"
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
test:
name: "Tests"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup Rust"
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- name: "Run tests"
uses: actions-rs/cargo@v1
with:
command: test