From a4e29ba81c00ca5519382abcec331c28ede76c99 Mon Sep 17 00:00:00 2001 From: shota Date: Thu, 3 Oct 2019 00:06:29 +0900 Subject: [PATCH] Update nodejs.yml --- .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..5deb7ae --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,28 @@ +name: Node CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm ci, lint, test and build + run: | + npm ci + npm run lint + npm test -- praparat --no-watch --no-progress --browsers=ChromeHeadlessCI + npm run build -- praparat + npm run build -- demo-app --prod + env: + CI: true