Skip to content

Commit 9ca859c

Browse files
authored
chore: Use GitHub actions instead of Travis (#4265)
1 parent 1f28dac commit 9ca859c

File tree

3 files changed

+37
-65
lines changed

3 files changed

+37
-65
lines changed

.github/workflows/build_test.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: [main, staging, dev]
6+
pull_request:
7+
branches: [main, staging, dev]
8+
9+
jobs:
10+
build_test:
11+
name: Build and Test
12+
strategy:
13+
fail-fast: true
14+
matrix:
15+
os: [macos-latest, ubuntu-latest, windows-latest]
16+
runs-on: ${{ matrix.os }}
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 2
22+
- name: Set up Node.js
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: 14.x
26+
- name: Yarn cache
27+
uses: c-hive/gha-yarn-cache@v1
28+
- name: Install dependencies
29+
run: yarn --frozen-lockfile
30+
- name: Use xvfb-maybe on Linux
31+
run: |
32+
sed -i 's/\(electron-mocha \)/xvfb-maybe \1/g' package.json
33+
yarn global add xvfb-maybe
34+
if: contains(matrix.os, 'ubuntu')
35+
- name: Test
36+
run: yarn test

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/wrap
33
/temp
44
/.github/issue_template.md
5+
/resources
56
coverage
67
.nyc_output
78
instrumented-code

.travis.yml

-65
This file was deleted.

0 commit comments

Comments
 (0)