fix(frontend): lint #50
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: build | |
| on: | |
| push: | |
| branches: | |
| - v2_new_frontend | |
| jobs: | |
| lint-and-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| run: cd frontend && bun install | |
| - name: Run Prettier | |
| run: cd frontend &&bun run format | |
| - name: Run ESLint | |
| run: cd frontend && bun run lint | |
| deploy: | |
| runs-on: ubuntu-latest | |
| needs: lint-and-format | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Setup SSH | |
| uses: webfactory/[email protected] | |
| with: | |
| ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
| - name: Deploy to server | |
| run: | | |
| ssh -o StrictHostKeyChecking=no ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_HOST }} "git config --global --add safe.directory ${{ secrets.SERVER_PATH }} &&cd ${{ secrets.SERVER_PATH }} && git pull && docker-compose down && docker-compose up -d --build" |