Merge PR #276 add/github-workflow

* Commits:
  Add Github workflow for CI tests
  Use common CI test target via Travis
  Consolidate CI test scripts in Makefile
This commit is contained in:
stvn
2020-12-08 08:55:29 -08:00
3 changed files with 33 additions and 6 deletions

17
.github/workflows/validate.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: validate
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 12
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: make validate.ci

View File

@@ -5,11 +5,6 @@ before_install:
install:
- npm ci
script:
- make validate-no-uncommitted-package-lock-changes
- npm run i18n_extract
- npm run lint -- --max-warnings 0
- npm run test
- npm run build
- npm run is-es5
- make validate
after_success:
- codecov

View File

@@ -52,3 +52,18 @@ pull_translations:
validate-no-uncommitted-package-lock-changes:
# Checking for package-lock.json changes...
git diff --exit-code package-lock.json
.PHONY: validate
validate:
make validate-no-uncommitted-package-lock-changes
npm run i18n_extract
npm run lint -- --max-warnings 0
npm run test
npm run build
npm run is-es5
.PHONY: validate.ci
validate.ci:
npm ci
make validate
codecov