Skip to content

Commit

Permalink
chore: migrate to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
elbywan committed May 7, 2022
1 parent 17a620b commit 370ee3d
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 257 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tests And Coverage

on:
pull_request:
branches:
- "**"
push:
branches:
- master
workflow_dispatch:

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Unit tests
run: pnpm test
- name: Coveralls
if: ${{ success() }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: "./coverage/lcov.info"

6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
"build:classes": "rollup -c config/rollup.classes.config.js",
"build:websocket": "rollup -c config/rollup.websocket.config.js",
"test": "jest",
"coverage": "cat ./coverage/lcov.info | coveralls",
"clean": "rimraf {dist,react,handlers,websocket,classes,types}",
"prepublishOnly": "npm start"
},
Expand Down Expand Up @@ -129,7 +128,6 @@
"@testing-library/react": "^12.1.2",
"@types/jest": "^27.4.0",
"babel-jest": "^27.4.6",
"coveralls": "^3.1.1",
"eslint": "^8.8.0",
"eslint-plugin-jest": "^26.0.0",
"eslint-plugin-react": "^7.28.0",
Expand All @@ -146,4 +144,4 @@
"wretch": "^1.7.8",
"ws": "^7.5.6"
}
}
}
Loading

0 comments on commit 370ee3d

Please sign in to comment.