Bump @babel/core from 7.24.4 to 7.24.8 #105
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: Tests | |
on: | |
pull_request: | |
branches: | |
- master | |
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 & | |
- name: Wait for the server to start | |
run: sleep 5 | |
- 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 |