From 13e82c8ae5c90300bb795cf42f765664f81c3f99 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 31 Jan 2021 02:15:25 -0800 Subject: [PATCH] fix(ci): actions workflow fix --- .github/workflows/nodejs.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..07190c1 --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,28 @@ +# GitHub Nodejs CI +name: nodejs + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: ["12.x", "14.x"] + + steps: + - uses: actions/checkout@v2.3.4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2.1.4 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build, and test + run: | + npm install codecov -g + yarn install + yarn run test + yarn run coverage + codecov + env: + CI: true