forked from GraphiteEditor/Graphite
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (29 loc) · 830 Bytes
/
ci.yml
File metadata and controls
41 lines (29 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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