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'