Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: replace travis with github actions
- Loading branch information
Showing
2 changed files
with
54 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# This workflow will run build the typescript source files, run linter and prettier | ||
name: CI Check | ||
|
||
on: | ||
# Trigger the workflow on push or pull request, | ||
# but only for the main branch | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
name: "Build & Test" | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ | ||
ubuntu-latest, | ||
macos-latest | ||
] | ||
node-version: [ | ||
11, | ||
12, | ||
14 | ||
] | ||
|
||
steps: | ||
- name: Checkout repo and submodules | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: "Pre-Install hook Ubuntu" | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | ||
sudo apt update | ||
sudo apt install -y gcc-8 g++-8 | ||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 60 | ||
sudo apt install libudev-dev | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
|
||
- run: npm ci | ||
- run: npm run build | ||
- run: npm run tslint | ||
- run: npm run prettier-check |
This file was deleted.
Oops, something went wrong.