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+$/