Merge pull request #22 from UwUClub/AW-14-Create-action-reaction #35
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 | |
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 pnpm | |
run: npm install -g pnpm | |
- name: Install Dependencies | |
run: pnpm install --no-frozen-lockfile | |
working-directory: ./api | |
- name: Build | |
run: pnpm run build | |
working-directory: ./api | |
- name: Run Tests | |
run: pnpm test | |
working-directory: ./api |