Skip to content

[zod-nestjs] Recursively convert to OpenAPI 3.0 specification #206

[zod-nestjs] Recursively convert to OpenAPI 3.0 specification

[zod-nestjs] Recursively convert to OpenAPI 3.0 specification #206

Workflow file for this run

# File for Pull Request on main branch
name: PR on main
# When a PR is opened to main
on:
pull_request:
branches:
- main
types: [opened, reopened, synchronize]
env:
BEFORE_SHA: ${{ github.event.before }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
build:
# Setup OS and Node Version
runs-on: ubuntu-latest
strategy:
matrix:
# Latest nodes only
node-version: [18]
# Define Steps
steps:
# Checkout code
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# Make sure we have all branches
- name: Fetch other branches
run: git fetch --no-tags --prune --depth=5 origin main
- name: Install environment
run: npm install
- name: Run lint
run: npm run affected:lint -- --base="origin/main"
- name: Tests coverage
run: npm run affected:test -- --base="origin/main" --codeCoverage