ci(GH Action): use environment variables instead of outputs #576
Workflow file for this run
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: "Pull Request" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.13" | |
cache: "npm" | |
- name: Install modules | |
run: npm ci | |
- name: Prettier | |
run: npm run format:check | |
- name: Lint frontend | |
run: npm run ng:lint | |
- name: Lint server | |
run: npm run server:lint | |
- name: Unit tests | |
run: npm test | |
- name: Build frontend | |
run: npm run ng:build | |
- name: Build server | |
run: npm run server:build |