From 17179a982859f5f4774e250734968f57e3ddb33f Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Tue, 10 May 2022 22:55:29 +0200 Subject: [PATCH] Add CI GitHub workflow --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..42aa5dc --- /dev/null +++ b/.github/workflows/main.yml @@ -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'