Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add CI checks #1

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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