Skip to content

Commit

Permalink
add CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
gflohr committed Jan 8, 2025
1 parent 2e67bd3 commit 44c16bd
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci-quick.yaml
Original file line number Diff line number Diff line change
@@ -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
38 changes: 38 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 44c16bd

Please sign in to comment.