diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..4a03564 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Test CI +on: + push: + branches-ignore: + - "master" + pull_request: + branches-ignore: + - "master" +jobs: + build: + name: ${{ matrix.kind }} ${{ matrix.os }} + runs-on: ${{ matrix.os }} + if: "!contains(github.event.head_commit.message, '[skip ci]')" + strategy: + matrix: + os: [macOS-latest, ubuntu-latest, windows-latest] + env: + GH_ACTIONS: true + DENO_BUILD_MODE: release + V8_BINARY: true + steps: + - uses: actions/checkout@v2 + - name: Setup Deno + uses: denolib/setup-deno@master + with: + deno-version: 1.x + - name: Run tests + run: deno test --allow-read