Skip to content

Commit

Permalink
ci(semantic-release): switch to github actions (#1076)
Browse files Browse the repository at this point in the history
* ci: fix semantic release

* ci(semantic-release): add github workflows

* ci(semantic-release): run steps in one job

* ci: remove travis config

* ci: update coveralls and bundlewatch configs

* ci: fix test coverage, remove bundlewatch config

* ci: bump config

* ci: bump bundlewatch

* ci(semantic-release): bump release workflow
  • Loading branch information
sagalbot authored Mar 1, 2020
1 parent 4c469cb commit 33104b5
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 19 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Test with Coverage
run: yarn test

- name: Build
run: yarn build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test & Build
on: [pull_request]
jobs:
test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Test with Coverage
run: yarn test --coverage --coverageReporters=lcov

- name: Report Coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn build

- name: Bundlewatch
run: npx bundlewatch
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

17 changes: 15 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,26 @@
"!**/node_modules/**"
],
"coverageReporters": [
"html",
"text-summary"
"text"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"bundlewatch": {
"files": [
{
"path": "./dist/vue-select.js",
"compression": "none",
"maxSize": "21 KB"
},
{
"path": "./dist/vue-select.css",
"compression": "none",
"maxSize": "6 KB"
}
]
}
}

0 comments on commit 33104b5

Please sign in to comment.