diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 00000000..a647b079 --- /dev/null +++ b/.github/workflows/validate.yml @@ -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 diff --git a/.travis.yml b/.travis.yml index 136ca946..8b73eee9 100755 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/Makefile b/Makefile index f51a0bb3..95031974 100644 --- a/Makefile +++ b/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