Fixes to CI actions

This commit is contained in:
Keavon Chambers
2021-04-09 22:26:48 -07:00
committed by GitHub
parent 1f26f9ef97
commit f258f2418b

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

@@ -0,0 +1,32 @@
name: Graphite Continuous Integration
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: '14.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