Skip to content

Files

Latest commit

 

History

History
34 lines (28 loc) · 1013 Bytes

README.md

File metadata and controls

34 lines (28 loc) · 1013 Bytes

Pulsar dependency Github Action

This Action can be used to test a Pulsar package.

name: CI
on:
  - push
  - pull_request
jobs:
  test:
    name: Test
    strategy:
      matrix:
        os: [ubuntu-20.04, macos-latest, windows-2019]
      fail-fast: false
    runs-on: ${{ matrix.os }}
    steps:
      - name: Checkout the Latest Package Code
        uses: actions/checkout@v3
      - name: Setup Pulsar Editor
        uses: pulsar-edit/[email protected]
      - name: Run the headless Pulsar Tests
        uses: coactions/[email protected]
        with:
          run: pulsar --test spec

The above is a valid workflow for any package repository.

Otherwise using coactions/setup-xvfb is recommended because otherwise the tests will attempt to startup Electron from Pulsar and fail when they are unable to connect to a display.

Using coactions/setup-xvfb over GabrielBB/xvfb-action is recommended because it appears unmaintained anymore, and Nodejs 12 actions are deprecated