Skip to content

Commit

Permalink
ci: set up CI pipeline for linting and building
Browse files Browse the repository at this point in the history
  • Loading branch information
Veirt committed Nov 8, 2024
1 parent 7064e4e commit 2865684
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Lint and Build

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

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x, 22.x, 23.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Run Linting
run: pnpm run lint

- name: Build Project
run: pnpm run build


0 comments on commit 2865684

Please sign in to comment.