Skip to content

Day 3 Homework: Added application tests for the nest-product-details … #22

Day 3 Homework: Added application tests for the nest-product-details …

Day 3 Homework: Added application tests for the nest-product-details … #22

Workflow file for this run

name: CI/CD
on:
push:
branches:
- main
pull_request:
env:
NODE_VERSION: 16
jobs:
lint:
name: Lint files
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out a copy of the repo
uses: actions/checkout@v3
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
test-app:
name: Test app
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out a copy of the repo
uses: actions/checkout@v3
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test
run: yarn test