Fix cors header override #57
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: Docker Image CI | |
on: | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.ref }} | |
- uses: isbang/[email protected] | |
with: | |
compose-file: "compose.yml" | |
- name: Wait for containers to start | |
run: | | |
sleep 18 | |
docker run \ | |
--rm \ | |
--network mercury-project_default \ | |
alpine/curl -o /dev/null --retry 3 --retry-connrefused backend:5000 | |
- name: Test the backend | |
run: cd backend; npm i && npm run test run | |
- name: Format files | |
run: cd ..; npm i && npm run prettier:fix | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Apply formatting changes | |
branch: ${{ github.head_ref }} |