Graphite/.github/workflows/ci.yml
2021-04-14 00:41:20 -07:00

41 lines
802 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 client
run: cd client/web && npm run build
- name: 👕 Lint Graphite web formatting
run: 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