Skip to content
This repository was archived by the owner on Oct 24, 2021. It is now read-only.

Commit 51327ba

Browse files
authored
feat: setup github actions (#95)
1 parent 591d22a commit 51327ba

File tree

4 files changed

+478
-491
lines changed

4 files changed

+478
-491
lines changed

.circleci/config.yml

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

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/cache@v2
17+
with:
18+
path: |
19+
~/.dts
20+
~/.npm
21+
key: node${{ matrix.node-version }}
22+
- uses: actions/setup-node@v1
23+
with:
24+
node-version: '12'
25+
- name: install dependencies
26+
run: npm ci
27+
- name: run test
28+
run: npm t
29+
- uses: codecov/codecov-action@v1
30+
- name: build
31+
run: npm run build
32+
- name: release (if necessary)
33+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
34+
run: npm run semantic-release

0 commit comments

Comments
 (0)