Skip to content

Commit

Permalink
Add workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
milenaaluisa committed Feb 13, 2025
1 parent 125606c commit 90c0da2
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test-project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Run Tests

on:
push:
branches:
- main
- staging
pull_request:
branches:
- main
- staging

jobs:
test:
strategy:
fail-fast: false
matrix:
node-version: ['20.x', '18.x']
os: [ubuntu-latest, windows-latest, macos-latest]

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

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org/'

- name: Install dependencies
run: npm install

- name: Build the project
run: npm run build

- name: Run tests
run: npm run test

0 comments on commit 90c0da2

Please sign in to comment.