Skip to content

Commit eb80283

Browse files
feat: use GitHub actions instead of CircleCI (#2417)
1 parent 7ca9fbc commit eb80283

File tree

2 files changed

+42
-123
lines changed

2 files changed

+42
-123
lines changed

.circleci/config.yml

-123
This file was deleted.

.github/workflows/pull-request-ci.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Pull request workflow
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
pr:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- uses: actions/setup-node@v1
12+
with:
13+
node-version: '12'
14+
- name: Get yarn cache directory path
15+
id: yarn-cache-dir-path
16+
run: echo "::set-output name=dir::$(yarn cache dir)"
17+
- uses: actions/cache@v1
18+
with:
19+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
20+
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}
21+
restore-keys: |
22+
${{ runner.os }}-node-modules-
23+
${{ runner.os }}-
24+
25+
- name: Install dependencies
26+
if: steps.yarn-cache.outputs.cache-hit != 'true'
27+
run: yarn
28+
29+
- name: Run tsc
30+
run: yarn tsc
31+
32+
- name: Run unit tests
33+
run: yarn test
34+
35+
- name: Check linter
36+
run: yarn lint
37+
38+
- name: Check markdown linter
39+
run: yarn workspace docs lint-md
40+
41+
- name: Build vuepress
42+
run: yarn build

0 commit comments

Comments
 (0)