Create ci.yml

This commit is contained in:
Rasmus Melchior Jacobsen 2023-01-30 09:58:13 +01:00 committed by GitHub
parent 097b38e0c1
commit 99c6d59e27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
.github/workflows/ci.yml vendored Normal file
View 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