-
-
Notifications
You must be signed in to change notification settings - Fork 163
63 lines (63 loc) · 1.71 KB
/
moon.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
52
53
54
55
56
57
58
59
60
61
62
63
name: Moon
on:
push:
branches:
- master
pull_request:
paths:
- .github/workflows/moon.yml
- .moon/workspace.yml
- .moon/project.yml
- crates/**
- packages/**
- website/**
- package.json
- yarn.lock
jobs:
ci:
name: CI
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [14, 16, 18]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/cache@v3
name: Cache cargo
with:
path: |
~/.cargo/bin
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- uses: actions/cache@v3
name: Cache node modules
with:
path: |
~/.yarn
.yarn/install-state.gz
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- uses: actions/cache@v3
name: Cache moon toolchain
with:
path: ~/.moon/tools
key:
${{ runner.os }}-moon-node@${{ matrix.node-version }}-${{
hashFiles('.moon/workspace.yml') }}
restore-keys: ${{ runner.os }}-moon-node@${{ matrix.node-version }}-
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.62.0
profile: minimal
- uses: moonrepo/tool-version-action@v1
with:
node: ${{ matrix.node-version }}
- uses: actions-rs/cargo@v1
with:
command: run
args: -- --color --log trace ci --base ${{ github.base_ref || 'master' }}