att: switch auth system from cookies to headers #32
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: Docker Compose | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: docker compose build frontend backend | |
- name: Setup Backend | |
run: timeout 30s docker compose up backend db || [[ $? -eq 124 ]] && exit 0 | |
- name: Setup Frontend | |
run: timeout 30s docker compose up frontend backend db || [[ $? -eq 124 ]] && exit 0 | |
- name: Setup All | |
run: docker compose up -d frontend backend db | |
- name: Test Backend | |
run: sleep 30 && curl -f http://localhost:8080/status | |
- name: Test Frontend | |
run: sleep 60 && curl -f http://localhost/login | |