Skip to content

Commit

Permalink
chore: add CI checks
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Aug 19, 2024
1 parent 0038db8 commit c5bf6d1
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on: [ push, pull_request ]

jobs:
build:
strategy:
matrix:
platform: [ ubuntu-latest ]
node-version: [ 20 ]
rust-version: [ stable, nightly ]

runs-on: ${{ matrix.platform }}

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Install build dependencies
run: sudo apt-get update && sudo apt-get -y install protobuf-compiler

- name: Use Rust toolchain
run: rustup update ${{ matrix.rust-version }} && rustup default ${{ matrix.rust-version }}

- name: Install rustfmt
run: rustup component add rustfmt

- name: Install clippy
run: rustup component add clippy

- name: Compile
run: cargo build

- name: Format
run: cargo fmt --check

- name: Clippy
run: cargo clippy

0 comments on commit c5bf6d1

Please sign in to comment.