From 9dbe6971c090226a464f93c7cfcd78eab0e17e75 Mon Sep 17 00:00:00 2001 From: odan Date: Thu, 18 Mar 2021 21:44:19 +0900 Subject: [PATCH] add GitHub Actions --- .github/workflows/nodejs.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..ac63a68 --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: + - "**" + +jobs: + test: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: Run npm ci + run: npm ci + - name: Run test + run: npm run build && npm test