Skip to content

Commit

Permalink
Running tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
iwoplaza committed Jul 7, 2024
1 parent b0524d6 commit a067d83
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Tests

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
# Runs all steps on the VM
test:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [18.x, 20.x, 22.x]

steps:
- name: Checkout Code Repository
uses: actions/checkout@v2

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false

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

- run: pnpm i --frozen-lockfile
- run: pnpm test

0 comments on commit a067d83

Please sign in to comment.