Skip to content

fix: ci.yml

fix: ci.yml #4

Workflow file for this run

name: CI
run-name: ${{ github.actor }} CI
on:
push:
branches:
- main
pull_request:
branches:
- main
types: [opened, synchronize, reopened]
pull_request_target:
types: [pushed]
jobs:
build:
# Docker already installed in ubuntu-latest runner

Check failure on line 17 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
runs-on: ubuntu-latest
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build and run containers
run: |
docker-compose up --build -d
- name: Run lint
run: docker-compose exec app npm run lint
- name: Run tests
run: docker-compose exec app npm test
- name: Run coverage
run: docker-compose exec app npm run test:cov
- name: Build project
run: docker-compose exec app npm run build
- name: Wait for server to start
run: sleep 10
- name: Test server
run: curl -f http://localhost:8000 || exit 1