ops: add basic actions for build-test-fmt check

This commit is contained in:
Magamedrasul Ibragimov 2022-10-11 19:58:16 +03:00 committed by GitHub
parent aa3a3cb614
commit 78ea4bce76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 0 deletions

30
.github/workflows/build-test-fmt.yml vendored Normal file
View File

@ -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