From cc708e9fb432ece86619386411333e55e838c7b2 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 29 Jun 2021 14:19:24 +0100 Subject: [PATCH 1/2] Move to GH Actions in place of Travis --- .github/workflows/{build.yml => release.yml} | 2 +- .github/workflows/tests.yml | 30 ++++++++++++++++++++ .travis.yml | 22 -------------- 3 files changed, 31 insertions(+), 23 deletions(-) rename .github/workflows/{build.yml => release.yml} (98%) create mode 100644 .github/workflows/tests.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/release.yml similarity index 98% rename from .github/workflows/build.yml rename to .github/workflows/release.yml index b7239546c..e86c2afe3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: PublishDockerImage +name: Publish Release env: ACTIONS_ALLOW_UNSECURE_COMMANDS: true on: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 000000000..349f80320 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,30 @@ +name: Run tests + +on: + push: + branches: [ master, dev, bye-travis] + pull_request: + branches: [ master, dev ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [12, 14, 16] + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: Install Dependencies + run: npm install + - name: Run tests + run: | + npm run test + - name: Publish to coveralls.io + if: ${{ matrix.node-version == 14 }} + uses: coverallsapp/github-action@v1.1.2 + with: + github-token: ${{ github.token }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 323f0948a..000000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -sudo: false -addons: - chrome: stable -language: node_js -matrix: - include: - - node_js: "16" - script: - - ./node_modules/.bin/grunt no-coverage - - node_js: "14" - script: - - ./node_modules/.bin/grunt && ( cat coverage/lcov.info | $(npm get prefix)/bin/coveralls || true ) && rm -rf coverage - # - scripts/install-ui-test-dependencies.sh && grunt test-ui - before_script: - - npm install -g coveralls - - node_js: "12" - script: - - ./node_modules/.bin/grunt no-coverage - allow_failures: - - node_js: "16" - script: - - ./node_modules/.bin/grunt no-coverage From 75c58093f1845036885dd23ef128dbc3a661f13c Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 29 Jun 2021 14:25:22 +0100 Subject: [PATCH 2/2] Remove bye-travis branch trigger --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 349f80320..dde581a01 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,7 +2,7 @@ name: Run tests on: push: - branches: [ master, dev, bye-travis] + branches: [ master, dev ] pull_request: branches: [ master, dev ]