chore: Github Actions configuration (#113)
This commit is contained in:
parent
279a876f7d
commit
16983cfbf0
21
.github/workflows/test-and-release.yml
vendored
Normal file
21
.github/workflows/test-and-release.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
name: Test and Release
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-16.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '12'
|
||||
- run: yarn install --frozen-lockfile
|
||||
- run: yarn lint
|
||||
- run: yarn build
|
||||
- run: yarn test
|
||||
- name: Release
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: yarn semantic-release
|
||||
14
.github/workflows/test-pull-request.yml
vendored
Normal file
14
.github/workflows/test-pull-request.yml
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
name: Test Pull Request
|
||||
on: pull_request
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-16.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '12'
|
||||
- run: yarn install --frozen-lockfile
|
||||
- run: yarn lint
|
||||
- run: yarn build
|
||||
- run: yarn test
|
||||
@ -1,8 +0,0 @@
|
||||
pull_request_rules:
|
||||
- name: automatic merge on CI success and review
|
||||
conditions:
|
||||
- status-success=continuous-integration/travis-ci/pr
|
||||
- "#approved-reviews-by>=1"
|
||||
actions:
|
||||
merge:
|
||||
method: merge
|
||||
25
.travis.yml
25
.travis.yml
@ -1,25 +0,0 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- 10
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- libgconf-2-4
|
||||
cache:
|
||||
directories:
|
||||
- ~/.npm
|
||||
- ~/.cache
|
||||
- node_modules
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
notifications:
|
||||
email: false
|
||||
install:
|
||||
- npm install
|
||||
script:
|
||||
- npm run lint
|
||||
- npm run build
|
||||
- npm run test
|
||||
after_success:
|
||||
- npm run semantic-release
|
||||
@ -44,7 +44,7 @@
|
||||
"rollup-plugin-node-resolve": "^3.0.3",
|
||||
"rollup-plugin-postcss": "^1.2.8",
|
||||
"rollup-plugin-uglify-es": "^0.0.1",
|
||||
"semantic-release": "^15.6.3",
|
||||
"semantic-release": "^17.1.1",
|
||||
"start-server-and-test": "^1.4.1",
|
||||
"travis-deploy-once": "^5.0.1"
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user