mirror of https://github.com/vacp2p/pmtree.git
31 lines
493 B
YAML
31 lines
493 B
YAML
name: Build-Test-Fmt
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Build
|
|
run: cargo build
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Run tests
|
|
run: cargo test
|
|
|
|
fmt:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Run clippy
|
|
run: cargo clippy
|
|
- name: Run fmt check
|
|
run: cargo fmt -- --check
|