96 lines
2.3 KiB
YAML
Raw Normal View History

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-25 22:48:11 +02:00
["latest", "0.1.4"]
steps:
- uses: actions/checkout@v2
- name: Setup Bun - Test Builds * ${{ matrix.misc-test-builds }}
uses: ./
with:
bun-version: ${{ matrix.bun-version }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Try bun
run: |
bun --version
test-version-canary:
2022-07-25 22:48:11 +02:00
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
bun-version:
["canary"]
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-11 09:45:23 +02:00
uses: ./
with:
bun-version: ${{ matrix.bun-version }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Try bun
2022-07-12 22:08:16 +02:00
run: |
2022-07-13 07:50:55 +02:00
bun --version
test-custom-download-url:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
bun-version:
["latest"]
custom-download-url:
2023-01-13 12:06:42 -08:00
["https://api.github.com/repos/oven-sh/bun/actions/artifacts/509746254/zip"]
# use the artifact ID for `bun-linux-x64` from a recent CI build
steps:
- uses: actions/checkout@v2
- name: Setup Bun - Test Builds * ${{ matrix.misc-test-builds }}
uses: ./
with:
bun-version: ${{ matrix.bun-version }}
2022-07-28 08:26:28 +02:00
github-token: ${{ secrets.GITHUB_TOKEN }}
custom-download-url: ${{ matrix.custom-download-url }}
- name: Try bun
run: |
bun --version
test-custom-repository:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
bun-version:
["latest"]
repository:
["https://github.com/oven-sh/misc-test-builds"]
steps:
- uses: actions/checkout@v2
- name: Setup Bun - Test Builds * ${{ matrix.misc-test-builds }}
uses: ./
with:
bun-version: ${{ matrix.bun-version }}
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ matrix.repository }}
- name: Try bun
run: |
bun --version