Skip to content

Commit

Permalink
workflow(feat): Add CI workflow for unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
c272 committed May 7, 2024
1 parent c0ec581 commit 6a2fc67
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on: [push]

name: unit_tests

jobs:
check:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rust-src
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check

unit_tests:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rust-src
- name: Run unit tests
run: bash ./test.sh

0 comments on commit 6a2fc67

Please sign in to comment.