build: add GitHub action to run tests

This commit is contained in:
Paul-Christian Volkmer 2024-06-07 09:34:55 +02:00
parent 4c8c6295e0
commit ceba8d28b9

22
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: "Run Tests"
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose