-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 987 Bytes
/
nail.yml
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
42
43
44
45
46
47
48
49
50
51
name: Nail CI
on:
pull_request:
types:
- opened
- synchronize
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/ktanaka101/nail/nail-builder:latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
# rust tests
- name: Compile
run: cargo make nail compile-ci
- name: Run format
run: cargo make nail format-ci
- name: Run clippy
run: cargo make nail clippy-ci
- name: Run nail tests
run: cargo make nail test-ci
# node tests
- name: Install yarn packages
run: cargo make lsp-client install-ci
- name: Run nail language client tests
run: cargo make lsp-client test-ci