Graphite/.github/workflows/ci.yml

41 lines
830 B
YAML

name: 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: 🔧 Set up Node
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: 🚧 Install Node dependencies
run: cd client/web && npm install
- name: 🌐 Build Graphite web code
run: cd client/web && npm run build
- name: 👕 Lint Graphite web formatting
run: export NODE_ENV=production && cd client/web && npm run lint
- name: 🔬 Check Rust formatting
run: cargo fmt --all -- --check
- name: 🦀 Build Rust code
run: cargo build --verbose
- name: 🧪 Run Rust tests
run: cargo test --verbose