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:
17
.github/workflows/validate.yml
vendored
Normal file
17
.github/workflows/validate.yml
vendored
Normal 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
|
||||
@@ -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
|
||||
|
||||
15
Makefile
15
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user