refactor(backend): ♻️ fix rename change in tests #55
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: Format Code | |
on: | |
push: | |
branches: | |
- develop* | |
jobs: | |
flutter: | |
defaults: | |
run: | |
working-directory: ./frontend | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Flutter | |
uses: britannio/[email protected] | |
- name: Format Files with flutter format | |
run: flutter format . | |
- id: changed-files | |
name: Get changed files | |
uses: tj-actions/[email protected] | |
with: | |
separator: '\n' | |
- if: steps.changed-files-specific.outputs.any_modified == 'true' | |
name: Commit-back changes | |
uses: swinton/[email protected] | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
files: ${{steps.changes.outputs.all_modified_files}} | |
commit-message: "style(backend): format files with flutter" | |
python: | |
defaults: | |
run: | |
working-directory: ./backend | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run Black format | |
uses: psf/black@stable | |
with: | |
options: --verbose | |
- name: Run isort format | |
uses: isort/isort-action@master | |
with: | |
configuration: --profile black | |
- id: changed-files | |
name: Get changed files | |
uses: tj-actions/[email protected] | |
with: | |
separator: '\n' | |
- if: steps.changed-files-specific.outputs.any_modified == 'true' | |
name: Commit-back changes | |
uses: swinton/[email protected] | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
files: ${{steps.changes.outputs.all_modified_files}} | |
commit-message: "style(backend): format files with isort and black" |