2022-07-11 09:45:23 +02:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
pull_request:
|
|
|
|
branches: [main]
|
2022-07-12 09:08:38 +02:00
|
|
|
workflow_dispatch:
|
2022-07-11 09:45:23 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
|
|
|
bun-version:
|
2022-07-12 18:39:58 +02:00
|
|
|
["latest", "0.1.3", "latest"]
|
|
|
|
misc-test-builds:
|
2022-07-12 18:53:38 +02:00
|
|
|
[false, true]
|
2022-07-11 09:45:23 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2022-07-12 18:39:58 +02:00
|
|
|
- name: Setup Bun - Test Builds * ${{ matrix.misc-test-builds }}
|
2022-07-13 07:50:55 +02:00
|
|
|
if: matrix.os != 'macos-latest' && matrix.misc-test-builds != true
|
2022-07-11 09:45:23 +02:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
bun-version: ${{ matrix.bun-version }}
|
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
2022-07-12 18:39:58 +02:00
|
|
|
misc-test-builds: ${{ matrix.misc-test-builds }}
|
2022-07-11 09:45:23 +02:00
|
|
|
|
|
|
|
- name: Try bun
|
2022-07-13 07:50:55 +02:00
|
|
|
if: matrix.os != 'macos-latest' && matrix.misc-test-builds != true
|
2022-07-12 22:08:16 +02:00
|
|
|
run: |
|
2022-07-13 07:50:55 +02:00
|
|
|
bun --version
|