Skip to content

Fixed

Fixed #44

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- master
push:
branches:
- test
jobs:
units:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 21.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Build the app
run: npm ci |
cp .env.example .env
npm run build
- name: Start the application
run: npm run start
background: true

Check failure on line 29 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / Tests

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml (Line: 29, Col: 9): Unexpected value 'background'
- name: Test API endpoint
run: |
response=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:3000/docs)
if [ $response == "200" ]; then
echo "API endpoint is reachable."
exit 0
else
echo "API endpoint is not reachable."
exit 1
fi