Googlefix deploy #150
Workflow file for this run
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: Continuous Integration and Synchronization | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| push: | |
| branches: | |
| - develop | |
| jobs: | |
| quality: | |
| name: Check quality | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: 8 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Checking | |
| run: pnpm lint && pnpm lint:type && pnpm lint:eslint && pnpm lint:prettier | |
| sync: | |
| name: Sync forked repo | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/develop' | |
| steps: | |
| - name: Checkout develop | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.AUTO_ACTIONS }} | |
| fetch-depth: 0 | |
| ref: develop | |
| - name: Add remote-url | |
| run: | | |
| git remote add forked-repo https://Nextroom-developer:${{ secrets.AUTO_ACTIONS }}@github.com/Nextroom-developer/nextroomfe | |
| git config user.name Nextroom-developer | |
| git config user.email ${{ secrets.EMAIL }} | |
| - name: Push changes to forked-repo | |
| run: | | |
| git push -f forked-repo develop | |
| - name: Clean up | |
| run: | | |
| git remote remove forked-repo |