diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index e3bf546..bac2b45 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,19 +1,27 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions +name: Node CI -name: Node.js CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] +on: [push] jobs: build: runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: npm install and build webpack + run: | + npm install + npm run build + - uses: actions/upload-artifact@master + with: + name: webpack artifacts + path: public/ + + test: + + runs-on: ubuntu-latest + strategy: matrix: os: [ubuntu-latest] @@ -25,6 +33,9 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run build --if-present - - run: npm test + - name: npm install, and test + run: | + npm install + npm test + env: + CI: true