feat: atualizar script de implantação para suportar Cloud Run Jobs #152
This file contains hidden or 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: Lint and format | |
| on: ['push'] | |
| defaults: | |
| run: | |
| working-directory: ./functions/psi | |
| jobs: | |
| format: | |
| name: Lint and format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| - uses: actions/setup-node@v2.3.0 | |
| with: | |
| node-version: '12.x' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Lint | |
| run: npm run lint | |
| - name: Format | |
| run: | | |
| npm ci | |
| npm run format | |
| - name: Commit changes | |
| uses: stefanzweifel/git-auto-commit-action@v4.11.0 | |
| with: | |
| commit_message: 'style: :lipstick: Apply formatting changes' | |
| branch: ${{ github.head_ref }} |