From 8e4d09e703255234c86c90d4b787005a0c650491 Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Mon, 24 Feb 2020 09:39:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20CI:=20add=20github=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..bc6f072f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: Node CI + +on: [push] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + node_version: [8.x, 10.x, 12.x] + os: [ubuntu-latest, windows-latest, macOS-latest] + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node_version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node_version }} + - run: yarn + - run: yarn run lint + - run: yarn run tsc + - run: yarn run build + - run: yarn run test + env: + CI: true + HEADLESS: false + PROGRESS: none + NODE_ENV: test + NODE_OPTIONS: --max_old_space_size=4096