Skip to content

Commit

Permalink
ci: set up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Oct 23, 2024
1 parent d2a0893 commit 9e9c9f0
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
pull_request:
push:
branches:
- main

name: CI

jobs:
check:
name: ${{ matrix.target_name }} (check, clippy)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- target_name: Linux
os: ubuntu-latest
- target_name: macOS
os: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run cargo fmt
env:
TERM: xterm-256color
run: |
cargo +nightly fmt --all -- --check
- name: Run cargo clippy
run: cargo clippy

- name: Run cargo test
run: cargo test

0 comments on commit 9e9c9f0

Please sign in to comment.