ci: added github workflows to the project #3
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: Backend Actions | |
on: | |
push: | |
paths: | |
- 'apps/api/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node and dependencies | |
uses: ./.github/actions/install | |
- name: Run build | |
run: pnpm dlx nx build api | |
linter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node and dependencies | |
uses: ./.github/actions/install | |
- name: Run lint | |
run: pnpm dlx nx lint api | |
integration-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node and dependencies | |
uses: ./.github/actions/install | |
- name: Run integration tests | |
run: export NODE_ENV=development && pnpm dlx nx test:integration api |