Skip to content

Commit

Permalink
feat: add github workflow for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolv-Apneseth committed Feb 8, 2024
1 parent 1a222a7 commit c8a4a8d
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Bootstrap
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy

- name: Formatting
uses: actions-rs/cargo@v1
with:
command: fmt
continue-on-error: false

- name: Linting
uses: actions-rs/cargo@v1
with:
command: clippy
continue-on-error: false

- name: Build
run: cargo build --library --verbose

0 comments on commit c8a4a8d

Please sign in to comment.