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

Publish Build and Test CI #20

Merged
merged 2 commits into from
Dec 20, 2024
Merged
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
87 changes: 87 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: CI / Build & Test

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
workflow_dispatch:

concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true

jobs:
on_linux:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
node-version: [18.x, 19.x, 20.x, 21.x, 22.x]

name: Linux - Build & Test on v${{ matrix.node-version }}
steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Setup pnpm@v9
run: npm i -g [email protected]; pnpm -v

- run: pnpm i
- run: pnpm run build

on_macos:
runs-on: macos-latest
continue-on-error: true
strategy:
matrix:
node-version: [18.x, 19.x, 20.x, 21.x, 22.x]

name: Macos - Build & Test on v${{ matrix.node-version }}
steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Setup pnpm@v9
run: npm i -g [email protected]; pnpm -v

- run: pnpm i
- run: pnpm run build

on_windows:
runs-on: windows-latest
continue-on-error: true
strategy:
matrix:
node-version: [18.x, 19.x, 20.x, 21.x, 22.x]

name: Windows - Build & Test on v${{ matrix.node-version }}
steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Setup pnpm@v9
run: npm i -g [email protected]; pnpm -v

- run: pnpm i
- run: pnpm run build

job_summary:
needs: [on_linux, on_windows, on_macos]
continue-on-error: false
runs-on: ubuntu-latest
steps:
- name: Job Summary
run: echo "🎉 The job was successful."
Loading