From 44c16bd7f5e0bf7c83290530f849571172a3faab Mon Sep 17 00:00:00 2001 From: Guido Flohr Date: Wed, 8 Jan 2025 18:36:45 +0200 Subject: [PATCH] add CI workflows --- .github/workflows/ci-quick.yaml | 38 +++++++++++++++++++++++++++++++++ .github/workflows/ci.yaml | 38 +++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 .github/workflows/ci-quick.yaml create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci-quick.yaml b/.github/workflows/ci-quick.yaml new file mode 100644 index 0000000..30d6f73 --- /dev/null +++ b/.github/workflows/ci-quick.yaml @@ -0,0 +1,38 @@ +name: CI - Test Suite + +on: + push: + branches: + - '**' + +jobs: + test: + name: Test on ${{ matrix.os }} with Node.js ${{ matrix.node-version }} + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + node-version: [22] + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install Bun + run: curl -fsSL https://bun.sh/install | bash + + - name: Set Bun environment path + shell: bash + run: echo "export PATH=\$HOME/.bun/bin:\$PATH" >> $GITHUB_ENV + + - name: Install dependencies + run: bun install + + - name: Run tests + run: bun test diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..f5022a9 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,38 @@ +name: CI - Test Suite + +on: + pull_request: + branches: + - '**' + +jobs: + test: + name: Test on ${{ matrix.os }} with Node.js ${{ matrix.node-version }} + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + node-version: [16, 18, 20, 22] + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install Bun + run: curl -fsSL https://bun.sh/install | bash + + - name: Set Bun environment path + shell: bash + run: echo "export PATH=\$HOME/.bun/bin:\$PATH" >> $GITHUB_ENV + + - name: Install dependencies + run: bun install + + - name: Run tests + run: bun test