Skip to content

Commit bab5397

Browse files
committed
chore(ci): drop Travis and AppVeyor for GitHub Actions
1 parent f69e200 commit bab5397

File tree

4 files changed

+78
-83
lines changed

4 files changed

+78
-83
lines changed

.appveyor.yml

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

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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: [8.x, 10.x, 12.x, 14.x]
16+
include:
17+
- os: windows-latest
18+
node: 12
19+
20+
steps:
21+
- uses: actions/checkout@v1
22+
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
28+
- name: Get yarn cache directory
29+
id: yarn-cache
30+
run: echo "::set-output name=dir::$(yarn cache dir)"
31+
32+
- name: Restore yarn cache (if available)
33+
uses: actions/cache@v1
34+
with:
35+
path: ${{ steps.yarn-cache.outputs.dir }}
36+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
37+
restore-keys: |
38+
${{ runner.os }}-yarn-
39+
40+
- run: yarn install --frozen-lockfile
41+
42+
- run: |
43+
cd example
44+
yarn install --frozen-lockfile
45+
yarn docs
46+
yarn docs:docstrap
47+
yarn docs:minami
48+
yarn docs:tui
49+
cd ..
50+
51+
- run: yarn lint
52+
53+
- 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.

0 commit comments

Comments
 (0)