Skip to content

Commit

Permalink
chore: Replace Travis CI with GitHub actions, coveralls with codecov
Browse files Browse the repository at this point in the history
* semantic-release-cli stopped working with GitHub because GitHub stopped
  supporting Basic Authentication
* coveralls will stop working if I do not log in on the website for a couple of months
  • Loading branch information
prantlf committed Dec 1, 2020
1 parent 57cf868 commit 6ce6394
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 14 deletions.
1 change: 0 additions & 1 deletion .coveralls.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release

on:
push:
tags:
- 'v[0-9]+.*'

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14'
- run: curl -L https://unpkg.com/@pnpm/self-installer | node
- run: |
pnpm i --frozen-lockfile --no-verify-store-integrity
pnpx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test

on:
push:
branches:
- master
pull_request:
types:
- opened
- reopened
- synchronize

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '12', '14' ]
name: Node.js ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: curl -L https://unpkg.com/@pnpm/self-installer | node
- run: |
pnpm i --frozen-lockfile --no-verify-store-integrity
pnpm run cover
pnpx codecov --disable=gcov
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

0 comments on commit 6ce6394

Please sign in to comment.