Skip to content

Commit 21dbc5f

Browse files
authored
chore(ci): drop Travis and AppVeyor for GitHub Actions (#376)
1 parent 8cde212 commit 21dbc5f

File tree

8 files changed

+1024
-814
lines changed

8 files changed

+1024
-814
lines changed

.appveyor.yml

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

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Node CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '*'
7+
8+
jobs:
9+
ci:
10+
runs-on: ${{ matrix.os }}
11+
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest]
15+
node-version: [10.x, 12.x, 14.x]
16+
include:
17+
- os: windows-latest
18+
node: 12.x
19+
20+
steps:
21+
- name: Set git to use LF
22+
run: |
23+
git config --global core.autocrlf false
24+
git config --global core.eol lf
25+
if: matrix.os == 'windows-latest'
26+
27+
- uses: actions/checkout@v2
28+
29+
- name: Use Node.js ${{ matrix.node-version }}
30+
uses: actions/setup-node@v1
31+
with:
32+
node-version: ${{ matrix.node-version }}
33+
34+
- name: Get yarn cache directory
35+
id: yarn-cache
36+
run: echo "::set-output name=dir::$(yarn cache dir)"
37+
38+
- name: Restore yarn cache (if available)
39+
uses: actions/cache@v1
40+
with:
41+
path: ${{ steps.yarn-cache.outputs.dir }}
42+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
43+
restore-keys: |
44+
${{ runner.os }}-yarn-
45+
46+
- run: yarn install --frozen-lockfile
47+
48+
- run: |
49+
cd example
50+
yarn install --frozen-lockfile
51+
yarn docs
52+
yarn docs:docstrap
53+
yarn docs:minami
54+
yarn docs:tui
55+
cd ..
56+
57+
- run: yarn lint
58+
59+
- run: yarn test -i && npx codecov

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Install Node.js
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 12.x
19+
20+
- run: yarn install --frozen-lockfile
21+
22+
- run: yarn semantic-release
23+
env:
24+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

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

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ JSDoc for VueJS
99

1010
> A JSDoc plugin for listing props, data, computed data, and methods from *.vue files.
1111
12+
## Requirements
13+
14+
- Node 10+
15+
- Vue 2
16+
1217
## Installation
1318

1419
```bash
@@ -18,7 +23,7 @@ $ npm install --save-dev jsdoc jsdoc-vuejs
1823
You also need to install `vue-template-compiler` that match your Vue version:
1924

2025
```bash
21-
# if you use Vue 2.5.21
26+
# if you use Vue 2.5.21
2227
$ npm install --save-dev vue-template-compiler@2.5.21
2328
```
2429

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"docs:docstrap": "jsdoc -c .jsdoc-docstrap.js",
55
"docs:minami": "jsdoc -c .jsdoc-minami.js",
66
"docs:tui": "jsdoc -c .jsdoc-tui.js",
7-
"docs:all": "rm -rf docs docs-minami docs-tui docs-docstrap && jsdoc -d docs -c .jsdoc.js && jsdoc -c .jsdoc-docstrap.js && jsdoc -c .jsdoc-minami.js && jsdoc -c .jsdoc-tui.js"
7+
"docs:all": "rm -rf docs* && yarn docs && yarn docs:docstrap && yarn docs:minami && yarn docs:tui"
88
},
99
"dependencies": {
1010
"ink-docstrap": "^1.3.2",

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"scripts": {
1111
"test": "jest",
1212
"lint": "eslint --ext .js index.js config.js lib __tests__ cypress",
13-
"travis-deploy-once": "travis-deploy-once",
1413
"semantic-release": "semantic-release"
1514
},
1615
"repository": {
@@ -29,6 +28,9 @@
2928
"url": "https://github.com/Kocal/jsdoc-vuejs/issues"
3029
},
3130
"homepage": "https://github.com/Kocal/jsdoc-vuejs#readme",
31+
"engines": {
32+
"node": "^10.13.0 || >=12.0.0"
33+
},
3234
"dependencies": {
3335
"ejs": "^3.0.1"
3436
},
@@ -37,17 +39,15 @@
3739
"vue-template-compiler": ">= 2.0.0"
3840
},
3941
"devDependencies": {
40-
"@kocal/semantic-release-preset": "^1.1.0",
41-
"cheerio": "^1.0.0-rc.2",
42-
"codecov": "^3.0.4",
42+
"@kocal/semantic-release-preset": "^2.0.6",
4343
"cypress": "^4.0.1",
4444
"eslint": "^6.2.0",
4545
"eslint-config-airbnb-base": "^14.0.0",
4646
"eslint-plugin-cypress": "^2.0.1",
4747
"eslint-plugin-import": "^2.13.0",
4848
"jest": "^24.0.0",
4949
"jsdoc": "^3.6.2",
50-
"semantic-release": "^15.12.1",
50+
"semantic-release": "^17.1.1",
5151
"vue-template-compiler": "^2.5.21"
5252
}
5353
}

0 commit comments

Comments
 (0)