Skip to content

Commit 244f0c8

Browse files
authored
Merge pull request #20 from nutgaard/ci-change
ci: change ci to github-actions
2 parents 5105897 + 88aa423 commit 244f0c8

File tree

3 files changed

+68
-19
lines changed

3 files changed

+68
-19
lines changed

.github/workflows/master.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test, build and publish
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
env:
9+
CI: true
10+
jobs:
11+
test-build-publish:
12+
name: Test and build
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v1
16+
- uses: actions/cache@v1
17+
with:
18+
path: ~/.npm
19+
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
20+
restore-keys: |
21+
${{ runner.os }}-node-
22+
- name: Install dependencies
23+
run: npm ci
24+
- name: Test
25+
run: npm run test:prod
26+
- name: Build
27+
run: npm run build
28+
- name: Report coverage
29+
run: npm run report-coverage
30+
- name: Publish docs
31+
run: npm run deploy-docs
32+
env:
33+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
34+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
35+
- name: Publish package
36+
run: npm run semantic-release
37+
env:
38+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
39+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/pr.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Test and build
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- master
7+
8+
env:
9+
CI: true
10+
jobs:
11+
test-and-build:
12+
name: Test and build
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v1
16+
- uses: actions/cache@v1
17+
with:
18+
path: ~/.npm
19+
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
20+
restore-keys: |
21+
${{ runner.os }}-node-
22+
- name: Install dependencies
23+
run: npm ci
24+
- name: Test
25+
run: npm run test:prod
26+
- name: Build
27+
run: npm run build
28+
- name: Report coverage
29+
run: npm run report-coverage

.travis.yml

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

0 commit comments

Comments
 (0)