-
-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (37 loc) · 949 Bytes
/
ci.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
name: Pipeline
on:
push:
branches:
- master
pull_request:
jobs:
ci:
name: CI
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20]
fail-fast: true
env:
YARN_IGNORE_NODE: 1
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: moonrepo/setup-toolchain@v0
with:
auto-install: true
- uses: moonrepo/tool-version-action@v1
with:
node: ${{ matrix.node-version }}
- run: yarn install --immutable
- run: yarn setup
- run: moon ci --log debug --color
env:
MOONBASE_SECRET_KEY: ${{ secrets.MOONBASE_SECRET_KEY }}
MOONBASE_ACCESS_KEY: ${{ secrets.MOONBASE_ACCESS_KEY }}
- uses: moonrepo/run-report-action@v1
if: success() || failure()
with:
access-token: ${{ secrets.GITHUB_TOKEN }}
matrix: ${{ toJSON(matrix) }}