Improve accessibility #34
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
on: push | |
permissions: | |
contents: write | |
jobs: | |
ci-back-end: | |
name: Build and test back-end | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: docker compose -f docker-compose.ci.back-end.yml up --build --exit-code-from back-end | |
format-fix: | |
name: Fix source code format with Prettier | |
needs: ci-back-end | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: npm install | |
- run: npm run format:fix | |
- run: git add . | |
- run: git config --global user.email "<>" | |
- run: git config --global user.name "GitHub Actions (format-fix)" | |
- run: git commit -m "[AUTO] Fix source code format with Prettier" || echo "Files already correctly formatted." | |
- run: git push |