-
Notifications
You must be signed in to change notification settings - Fork 12
45 lines (45 loc) · 1.4 KB
/
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
38
39
40
41
42
43
44
45
name: Build Status
on:
push:
branches:
- main
- next
pull_request:
jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
platform: linux
arch: x64
- os: macos-latest
platform: darwin
arch: x64
runs-on: ${{ matrix.os }}
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 https://github.com/actions/checkout/releases/tag/v4.1.1
with:
persist-credentials: false
ref: ${{ github.event.pull_request.head.ref }}
- name: Cache Corestore
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0 https://github.com/actions/cache/releases/tag/v4.0.0
with:
path: pear/corestores/platform
key: platform-${{ matrix.platform }}-${{ matrix.arch }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/releases/tag/v4.0.2
with:
node-version: lts/*
- name: Install dependencies
run: npm install
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Bootstrap
run: npm run bootstrap pqbzjhqyonxprx8hghxexnmctw75mr91ewqw5dxe1zmntfyaddqy
- name: Run tests
run: npm test
- name: Lint
run: npm run lint