Dev #82
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: NestJS CI | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
- AW-42-documentation-tests-cicd | |
paths: | |
- "api/**" | |
pull_request: | |
branches: | |
- main | |
- dev | |
paths: | |
- "api/**" | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4.0.0 | |
with: | |
node-version: "21" | |
- name: Install npm | |
run: npm install -g npm | |
- name: Install Dependencies | |
run: npm install --no-frozen-lockfile | |
working-directory: ./api | |
- name: Build | |
run: npm run build | |
working-directory: ./api |