name: Bun CI

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  test:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        bun-version: ["1.x"]
        timezone: ["America/New_York", "Europe/Berlin"]

    steps:
      - name: Git Checkout
        uses: actions/checkout@v3
      - name: Use Bun Version ${{ matrix.bun-version }}
        uses: antongolub/action-setup-bun@v1.12.8
        with:
          bun-version: ${{ matrix.bun-version }}
          bun-repo: 'oven-sh/bun'
      - uses: szenius/set-timezone@v1.1
        with:
          timezoneLinux: ${{ matrix.timezone }}
      - name: Install Dependencies
        run: bun install
      - name: Test Bun Module
        run: bun run test:bun  