Skip to content

Commit

Permalink
Merge pull request #36 from davelopez/setup_ci
Browse files Browse the repository at this point in the history
Add CI GitHub workflow
  • Loading branch information
davelopez authored May 12, 2022
2 parents cb0a9b1 + 17179a9 commit 1e45177
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
pull_request:
branches: [master]
workflow_dispatch:

jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
- name: Compile
run: npm run compile
- name: Lint Code
run: npm run lint
- name: Run unit tests
run: npm test
- name: Run integration tests
run: xvfb-run -a npm run test:e2e
if: runner.os == 'Linux'
- name: Run integration tests
run: npm run test:e2e
if: runner.os != 'Linux'

0 comments on commit 1e45177

Please sign in to comment.