Skip to content

Commit

Permalink
Turn on GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
hildjj committed Feb 29, 2024
1 parent e92baa3 commit 08a5e41
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Tests

on:
push:
branches:
- '*'
pull_request:
branches: [main]

jobs:
build:

strategy:
matrix:
node-version: [18.x, 20.x, 21.x]
platform: [ubuntu-latest]

runs-on: ${{ matrix.platform }}

env:
OS: ${{ matrix.os }}
NODE: ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v4
- name: Install pnpm
run: corepack enable
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install
- run: npm run test
- run: npm run lint

0 comments on commit 08a5e41

Please sign in to comment.