Skip to content

Commit d4f73ec

Browse files
committed
Move from Travis to GHA (test now, publish soon)
1 parent ff0acf2 commit d4f73ec

File tree

2 files changed

+35
-74
lines changed

2 files changed

+35
-74
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
on: push
3+
jobs:
4+
build:
5+
name: Build & test
6+
runs-on: ubuntu-18.04
7+
steps:
8+
- uses: actions/checkout@v2
9+
10+
- uses: actions/setup-node@v1
11+
with:
12+
node-version: 14.6
13+
14+
- name: Get npm cache directory
15+
id: npm-cache
16+
run: |
17+
echo "::set-output name=dir::$(npm config get cache)"
18+
- uses: actions/cache@v2
19+
with:
20+
path: ${{ steps.npm-cache.outputs.dir }}
21+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
22+
restore-keys: |
23+
${{ runner.os }}-node-
24+
25+
- run: npm ci
26+
27+
- run: npm run build
28+
- run: npm run test
29+
- run: npm run test:release
30+
31+
- uses: actions/upload-artifact@v2
32+
with:
33+
name: distributables
34+
path: build/dist/*
35+
if-no-files-found: error

.travis.yml

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

0 commit comments

Comments
 (0)