Skip to content

Commit

Permalink
*: add github workflow for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdroychan committed Jul 23, 2024
1 parent 2d5fff6 commit 09c6506
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: test

on:
push:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: build
run: cargo build --verbose --release
- name: tests
run: cargo test --release

0 comments on commit 09c6506

Please sign in to comment.