Skip to content

Commit

Permalink
chore: Use GitHub actions instead of Travis (#4265)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffflorian committed Sep 14, 2020
1 parent 1f28dac commit 9ca859c
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 65 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and Test

on:
push:
branches: [main, staging, dev]
pull_request:
branches: [main, staging, dev]

jobs:
build_test:
name: Build and Test
strategy:
fail-fast: true
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Yarn cache
uses: c-hive/gha-yarn-cache@v1
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Use xvfb-maybe on Linux
run: |
sed -i 's/\(electron-mocha \)/xvfb-maybe \1/g' package.json
yarn global add xvfb-maybe
if: contains(matrix.os, 'ubuntu')
- name: Test
run: yarn test
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/wrap
/temp
/.github/issue_template.md
/resources
coverage
.nyc_output
instrumented-code
Expand Down
65 changes: 0 additions & 65 deletions .travis.yml

This file was deleted.

0 comments on commit 9ca859c

Please sign in to comment.