Skip to content

Commit

Permalink
ci(dev): move from travis to github actions
Browse files Browse the repository at this point in the history
it's seems like travis.ci is not completely free for open source projects anymore
  • Loading branch information
ysfaran committed Nov 7, 2021
1 parent 7efb239 commit 5e58a6b
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 15 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
push:
branches:
- "master"

jobs:
Build_Test_Release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
- run: npm install
- run: npm run build:package
- run: npm run test:package
- run: npm run coveralls
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: npx semantic-release
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test

on:
push:
branches:
- "*"
- "/*"
- "**"
- "!master"

jobs:
Build_Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
- run: npm install
- run: npm run build:package
- run: npm run test:package
- run: npm run coveralls
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
| `refactor` | refactoring code (should never contain features or bug fixes!) | |
| `perf` | changes that improve the performance | `PATCH` |
| `docs` | markdown file changes | `PATCH`, when scope is `readme` |
| `ci` | fixing or improving CI/CD (e.g. adapting `.travis.yml` ) | |
| `ci` | fixing or improving CI/CD (e.g. adapting files in `.github/workflows/` ) | |
| `chore` | no production code changes, which can not be described with types like `ci` or `build` (e.g. adapting `.gitignore` or adding new script to `package.json` ) | |
| `build` | changes that affect the build (e.g. adapting `rollup.config.js` or adding/removing dependencies) | `PATCH` |
- Allowed scopes:
Expand Down

0 comments on commit 5e58a6b

Please sign in to comment.