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

Add GHA tests workflow #52

Merged
merged 12 commits into from
Nov 4, 2023
36 changes: 36 additions & 0 deletions .github/workflows/rust-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Rust tests

on:
pull_request:
push:
branches:
- main

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
rust-tests:
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v4

- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: "3.6.1"

- name: Add wasm32-unknown-unknown target
run: rustup target add wasm32-unknown-unknown

- name: Build binary for test
uses: actions-rs/cargo@v1
liamaharon marked this conversation as resolved.
Show resolved Hide resolved
with:
command: build

- name: Run Tests
uses: actions-rs/cargo@v1
with:
command: test
Loading