chore: Github Actions configuration (#113)

This commit is contained in:
Faris Ansari 2020-09-16 22:59:51 +05:30 committed by GitHub
parent 279a876f7d
commit 16983cfbf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 3167 additions and 933 deletions

21
.github/workflows/test-and-release.yml vendored Normal file
View 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
View 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

View File

@ -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

View File

@ -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

View File

@ -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"
},

4030
yarn.lock

File diff suppressed because it is too large Load Diff