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