Skip to content

Commit

Permalink
ci: Add github action for test when PR
Browse files Browse the repository at this point in the history
  • Loading branch information
americano212 authored Jan 11, 2024
1 parent 836d0e8 commit 0f1ba44
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: NestJS-Test

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

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]

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

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm ci

- name: Run Tests
run: npm test

0 comments on commit 0f1ba44

Please sign in to comment.