Create basic CI workflow (#41)

This commit is contained in:
TrueDoctor 2021-03-24 21:40:35 +01:00 committed by Keavon Chambers
parent d9289573b4
commit b1ecc4d950
1 changed files with 32 additions and 0 deletions

32
.github/workflows/rust.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Install Dependencies
run: cd client/web && npm install
- name: build node
run: cd client/web && npm run build
- name: Format
run: cargo fmt --all -- --check
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose