Skip to content

Merge pull request #10 from sumeet-srknec/feature #19

Merge pull request #10 from sumeet-srknec/feature

Merge pull request #10 from sumeet-srknec/feature #19

Workflow file for this run

name: frontend service ci
on:
push:
branches: [ "master" ]
paths:
- "frontend/**"
- ".github/workflows/actions/action.yaml"
- ".github/workflows/frontend-ci.yaml"
pull_request:
branches: [ "master" ]
paths:
- "frontend/**"
- ".github/workflows/actions/action.yaml"
- ".github/workflows/frontend-ci.yaml"
workflow_dispatch:
jobs:
Build:
runs-on: ubuntu-latest
env:
FROM_ORIGINAL_REPOSITORY: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/master' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
working-directory: frontend
- run: npm run build
working-directory: frontend
- run: npx prettier --check .
working-directory: frontend
# Step 4: Run tests
- name: Run tests
run: npm test -- --watchAll=false
working-directory: frontend
# Step 5: Upload test results (optional, if you want test reports)
- name: Upload test results
working-directory: frontend
if: always()
uses: actions/upload-artifact@v3

Check failure on line 46 in .github/workflows/frontend-ci.yaml

View workflow run for this annotation

GitHub Actions / frontend service ci

Invalid workflow file

The workflow is not valid. .github/workflows/frontend-ci.yaml (Line: 46, Col: 9): Unexpected value 'uses' .github/workflows/frontend-ci.yaml (Line: 47, Col: 9): Unexpected value 'with'
with:
name: test-results
path: test-results