feat(test): add user service test #131
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: angular CI | |
on: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Install dependencies | |
working-directory: . | |
run: npm ci | |
- name: Build project | |
working-directory: . | |
run: npm run build --if-present | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: test in container | |
run: docker build -t node-docker-image-test --no-cache --target test . | |
# - name: Run tests | |
# working-directory: phase11 | |
# run: npm test | |
# - name: Upload coverage reports (optional) | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: coverage-reports | |
# path: /path |