From 2ba94409666946c1cbb4f2adc6f382816be0b779 Mon Sep 17 00:00:00 2001 From: stvn Date: Tue, 17 Nov 2020 12:19:00 -0800 Subject: [PATCH 1/3] Consolidate CI test scripts in Makefile --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 From e627fd6f279011608871f579a4a16c2f665cf061 Mon Sep 17 00:00:00 2001 From: stvn Date: Tue, 17 Nov 2020 12:19:23 -0800 Subject: [PATCH 2/3] Use common CI test target via Travis --- .travis.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 From 7086bdc9ab2ae7e932ca9f5b7b26b6d06bd549cc Mon Sep 17 00:00:00 2001 From: stvn Date: Tue, 17 Nov 2020 12:19:48 -0800 Subject: [PATCH 3/3] Add Github workflow for CI tests --- .github/workflows/validate.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/validate.yml 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