Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Canvinus committed Dec 8, 2023
2 parents 8375e1b + 923861c commit 21dc86b
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Main CI

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

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: '16.x'

- name: Install and Build
run: |
cd nest
npm ci
npm run build --if-present
test:
needs: build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: '16.x'

- name: Install Dependencies
run: |
cd nest
npm ci
- name: Test Nest JS
run: |
cd nest
npm run test

0 comments on commit 21dc86b

Please sign in to comment.