Skip to content

Commit 837cf1d

Browse files
committed
fix: add GitHub Actions to build, upload and test
1 parent e247b06 commit 837cf1d

File tree

3 files changed

+50
-21
lines changed

3 files changed

+50
-21
lines changed

.github/workflows/CI.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
5+
6+
jobs:
7+
Test:
8+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os:
14+
- ubuntu-latest
15+
- macos-latest
16+
# - windows-latest
17+
node_version:
18+
- 12
19+
steps:
20+
- uses: actions/checkout@v2
21+
with:
22+
submodules: recursive
23+
24+
- name: Install Node
25+
uses: actions/setup-node@v2
26+
with:
27+
node-version: ${{ matrix.node_version }}
28+
29+
- name: Install dependencies and build
30+
run: npm install
31+
32+
- name: Tests
33+
run: npm run test
34+
35+
- name: Upload artifacts
36+
uses: actions/upload-artifact@v2
37+
with:
38+
path: |
39+
./build
40+
./deps
41+
42+
Skip:
43+
if: contains(github.event.head_commit.message, '[skip ci]')
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Skip CI 🚫
47+
run: echo skip ci

.travis.yml

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

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# minidump - Process minidump files [![Build Status](https://travis-ci.org/electron/node-minidump.svg?branch=master)](https://travis-ci.org/electron/node-minidump)
1+
# minidump - Process minidump files
2+
3+
![CI](https://github.com/electron/node-minidump/workflows/CI/badge.svg)
24

35
## Installing
46

0 commit comments

Comments
 (0)