Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add workflows #21

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/ci_bun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: '🍞 CI - Compatibility'

on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:

jobs:
linux:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
name: Bun
steps:
- name: ➕ Actions - Checkout
uses: actions/checkout@v4

- name: ➕ Actions - Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: ➕ Actions - Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 'latest'

- name: ➕ Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-linux-${{ hashFiles('package-lock.json') }}
restore-keys: npm-linux-

- name: 📦 Installing Dependencies
run: npm ci

- name: 🧪 Checking for Coverage
run: bun run test:bun
42 changes: 42 additions & 0 deletions .github/workflows/ci_deno.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: '🦕 CI - Compatibility'

on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:

jobs:
linux:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
name: Deno
steps:
- name: ➕ Actions - Checkout
uses: actions/checkout@v4

- name: ➕ Actions - Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: ➕ Actions - Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: 'v1.x'

- name: ➕ Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-linux-${{ hashFiles('package-lock.json') }}
restore-keys: npm-linux-

- name: 📦 Installing Dependencies
run: npm ci

- name: 🧪 Checking for Coverage
run: deno task test:deno
37 changes: 37 additions & 0 deletions .github/workflows/ci_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: '🐧 CI'

on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:

jobs:
linux:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
name: Linux
steps:
- name: ➕ Actions - Checkout
uses: actions/checkout@v4

- name: ➕ Actions - Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: ➕ Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-linux-${{ hashFiles('package-lock.json') }}
restore-keys: npm-linux-

- name: 📦 Installing Dependencies
run: npm ci

- name: 🧪 Checking for Coverage
run: npm run test:node
37 changes: 37 additions & 0 deletions .github/workflows/ci_node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: '💚 CI - Compatibility'

on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:

jobs:
linux:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
name: Node.js
steps:
- name: ➕ Actions - Checkout
uses: actions/checkout@v4

- name: ➕ Actions - Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: ➕ Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-linux-${{ hashFiles('package-lock.json') }}
restore-keys: npm-linux-

- name: 📦 Installing Dependencies
run: npm ci

- name: 🧪 Checking for Coverage
run: npm run test:coverage
37 changes: 37 additions & 0 deletions .github/workflows/ci_osx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: '🍎 CI'

on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:

jobs:
osx:
runs-on: macos-latest
timeout-minutes: 5
strategy:
fail-fast: false
name: macOS
steps:
- name: ➕ Actions - Checkout
uses: actions/checkout@v4

- name: ➕ Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-osx-${{ hashFiles('package-lock.json') }}
restore-keys: npm-osx-

- name: ➕ Actions - Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: 📦 Installing Dependencies
run: npm ci

- name: 🧪 Checking for Coverage
run: npm run test:node
31 changes: 31 additions & 0 deletions .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: '🪟 CI'

on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:

jobs:
windows:
runs-on: windows-latest
timeout-minutes: 5
strategy:
fail-fast: false
name: Windows
steps:
- name: ➕ Actions - Checkout
uses: actions/checkout@v4

- name: ➕ Actions - Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'

- name: 📦 Installing Dependencies
run: npm ci

- name: 🧪 Checking for Coverage
run: npm run test:node