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

Commit fc3f556

Browse files
Use github actions instead of travis.
Travis seems severely broken for FOSS, so here we go.
1 parent 4191e87 commit fc3f556

File tree

2 files changed

+39
-46
lines changed

2 files changed

+39
-46
lines changed

.github/workflows/main.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [macos-latest, windows-latest, ubuntu-latest]
17+
node-version: [10.x, 12.x, 14.x, 15.x]
18+
19+
steps:
20+
- run: git config --global core.autocrlf false
21+
- uses: actions/checkout@v2
22+
- name: Set up Rust
23+
uses: actions-rs/toolchain@v1
24+
with:
25+
toolchain: stable
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v1
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
- run: npm ci
31+
# - run: npm test
32+
# build (will not publish)
33+
- run: npm run build
34+
if: github.ref != 'refs/heads/master'
35+
# dist (may publish)
36+
- run: npm run dist
37+
if: github.ref == 'refs/heads/master'
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

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

0 commit comments

Comments
 (0)