Skip to content

Commit

Permalink
ci: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alswl committed May 1, 2024
1 parent 53a36b1 commit 5a54b61
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Node CI

on: [push]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [18.x, 20.x]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '1'
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
registry-url: 'https://registry.yarnpkg.com'
- name: install pnpm
run: npm i pnpm@latest -g
- run: pnpm install
- run: pnpm build
- run: pnpm test --forceExit
env:
CI: true
HEADLESS: false
PROGRESS: none
NODE_ENV: test

0 comments on commit 5a54b61

Please sign in to comment.