From eea3559b2dbf293a96392f9b9aaf1e86ba6d0c47 Mon Sep 17 00:00:00 2001 From: Ferdinand Prantl Date: Wed, 27 Jul 2022 08:30:16 +0200 Subject: [PATCH] chore: Replace Travis and Coveralls with GitHub Actions and Codecov --- .coveralls.yml | 1 - .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ .travis.yml | 14 -------------- 3 files changed, 37 insertions(+), 15 deletions(-) delete mode 100644 .coveralls.yml create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.coveralls.yml b/.coveralls.yml deleted file mode 100644 index 9160059..0000000 --- a/.coveralls.yml +++ /dev/null @@ -1 +0,0 @@ -service_name: travis-ci diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9e0dbf5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: Test or Release + +on: + - push + - pull_request + +jobs: + test-or-release: + runs-on: ubuntu-latest + steps: + - name: Checkout Sources + uses: actions/checkout@v2 + - name: Install Node + uses: actions/setup-node@v2 + with: + node-version: 'lts/*' + registry-url: 'https://registry.npmjs.org' + - name: Install PNPM + uses: pnpm/action-setup@v2 + with: + version: '>=6' + run_install: | + - args: [--frozen-lockfile, --no-verify-store-integrity] + - name: Test + run: | + pnpm install -g grunt-cli + npm test + - name: Coverage + uses: codecov/codecov-action@v2 + - name: Publish + uses: cycjimmy/semantic-release-action@v2 + with: + semantic_version: 18 + branches: master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5e0b4a4..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: node_js -notifications: - email: false -node_js: - - node - - lts/* - - 8 -before_script: - - npm install -g grunt-cli -after_success: - - npx semantic-release -branches: - except: - - /^v\d+\.\d+\.\d+$/