Skip to content

Commit

Permalink
workflows: Run build and unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Jun 10, 2022
1 parent 6c98f53 commit 07cd838
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: tests
on:
push:
pull_request:
schedule:
- cron: 0 6 * * MON,FRI
jobs:
build-and-test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Build debug mode
run: cargo build

- name: Run tests in debug mode
run: cargo test

- name: Build release mode
run: cargo build --release

- name: Run tests in release mode
run: cargo test --release
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,5 @@ you can run it with
Run the unit tests with

cargo build

![tests](https://github.com/martinpitt/rtimelog/actions/workflows/tests.yml/badge.svg)

0 comments on commit 07cd838

Please sign in to comment.