mirror of https://github.com/vacp2p/pmtree.git
ops: add basic actions for build-test-fmt check
This commit is contained in:
parent
aa3a3cb614
commit
78ea4bce76
|
@ -0,0 +1,30 @@
|
||||||
|
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
|
Loading…
Reference in New Issue