fix(tools): misc. updates to action workflows

This commit is contained in:
Mrugesh Mohapatra
2020-08-08 23:39:03 +05:30
parent 5c60070cc5
commit e242852bef
4 changed files with 99 additions and 70 deletions

View File

@@ -1,9 +1,6 @@
name: Node.js CI
push:
branches:
- master
- production-**
on:
push:
pull_request:
branches:
- master
@@ -26,14 +23,17 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Set Environment variables
run: cp sample.env .env
- name: Lint Source Files
run: |
npm ci
npm run ensure-env --if-present
npm run lint --if-present
build:
name: Check Builds and Run Integration Tests
test:
name: Test
needs: lint
runs-on: ubuntu-latest
@@ -58,8 +58,5 @@ jobs:
npm ci
npm run ensure-env --if-present
- name: Build Packages
run: npm run build --if-present
- name: Run Tests
run: npm test