2019-11-15 11:14:42 +08:00
|
|
|
name: Node CI
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-05-04 10:13:05 +08:00
|
|
|
node-version: [16.x]
|
2019-11-15 11:14:42 +08:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
2023-05-04 10:13:05 +08:00
|
|
|
- name: install, test, build
|
2019-11-15 11:14:42 +08:00
|
|
|
run: |
|
2023-05-04 10:13:05 +08:00
|
|
|
export NODE_OPTIONS="--max_old_space_size=4096"
|
|
|
|
yarn install
|
|
|
|
yarn test
|
|
|
|
yarn build
|
2019-11-15 11:14:42 +08:00
|
|
|
env:
|
|
|
|
CI: true
|