Add support for custom preloads #1567
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- os: windows-latest | |
platform: win32 | |
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: Install Production Pear | |
run: npm i -g pear && pear | |
- name: Bootstrap | |
run: npm run bootstrap | |
- name: Run tests | |
run: npm test | |
- name: Lint | |
run: npm run lint |