Create ci.yml
This commit is contained in:
parent
097b38e0c1
commit
99c6d59e27
28
.github/workflows/ci.yml
vendored
Normal file
28
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
name: Rust
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "master" ]
|
||||||
|
# Releases are tags named 'v<version>', and must have the "major.minor.micro", for example: "0.1.0".
|
||||||
|
# Release candidates are tagged as `v<version>-rc<num>`, for example: "0.1.0-rc1".
|
||||||
|
tags:
|
||||||
|
- "v*"
|
||||||
|
pull_request:
|
||||||
|
branches: [ "master" ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Build
|
||||||
|
run: cargo build --verbose
|
||||||
|
- name: Clippy
|
||||||
|
run: cargo clippy --verbose
|
||||||
|
- name: Run tests
|
||||||
|
run: cargo test --verbose
|
Loading…
Reference in New Issue
Block a user