Skip to content

Commit 476ca58

Browse files
committed
ci(github-actions): use github-actions ci instead of travis
1 parent 1898e9c commit 476ca58

File tree

3 files changed

+51
-30
lines changed

3 files changed

+51
-30
lines changed

.github/workflows/release.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- beta
7+
- alpha
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [10.x, 12.x, 14.x]
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- run: npm install
21+
- run: npm test
22+
- run: npm run build --if-present
23+
coverage:
24+
needs: test
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: actions/setup-node@v1
29+
with:
30+
node-version: 12
31+
- run: npm install
32+
- run: npm run coverage
33+
- uses: coverallsapp/github-action@master
34+
with:
35+
github-token: ${{ secrets.GITHUB_TOKEN }}
36+
publish:
37+
needs: test
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v2
41+
- uses: actions/setup-node@v1
42+
with:
43+
node-version: 12
44+
- run: npm install
45+
- run: npx semantic-release
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.travis.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
"lint": "eslint . --ext .ts --ignore-path .gitignore",
2020
"pretest": "npm run lint",
2121
"test": "jest",
22-
"coverage": "jest --coverage && cat ./coverage/lcov.info | coveralls",
23-
"prepublishOnly": "npm run build",
24-
"semantic-release": "semantic-release"
22+
"coverage": "npm run test -- --coverage",
23+
"prepublishOnly": "npm run build"
2524
},
2625
"repository": {
2726
"type": "git",
@@ -43,7 +42,7 @@
4342
"bugs": {
4443
"url": "https://github.com/floydspace/dynamodb-migrations-tool/issues"
4544
},
46-
"homepage": "https://floydspace.github.io",
45+
"homepage": "https://floydspace.github.io/dynamodb-migrations-tool",
4746
"devDependencies": {
4847
"@commitlint/cli": "^8.3.5",
4948
"@commitlint/config-conventional": "^8.3.4",

0 commit comments

Comments
 (0)