mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-12-23 10:11:54 +00:00
41 lines
802 B
YAML
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
|