[Closes #57] Update page contents now that appeals period is over #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: CI | |
| on: | |
| push: | |
| branches: | |
| - "dev" | |
| - "main" | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| container: node:22.19.0-bookworm | |
| services: | |
| db: | |
| image: postgres:17.6 | |
| minio: | |
| image: minio/minio:RELEASE.2025-09-07T16-13-09Z | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Set up npm cache | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: 'npm' | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Generate Prisma client | |
| run: cd server && npx prisma generate | |
| - name: Run ESLint | |
| run: npm run lint | |
| - name: Run Tests | |
| run: cp server/example.env server/.env && npm test | |
| build: | |
| name: Build Image | |
| needs: test | |
| runs-on: ubuntu-latest | |
| if: ${{ github.ref_name == 'dev' || github.ref_name == 'main' }} | |
| steps: | |
| - name: Cloning repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up qemu | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up docker buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to docker hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Build and push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| tags: sfcivictech/lvrp:${{ github.sha }} | |
| deploy-prod: | |
| name: Deploy | |
| needs: build | |
| runs-on: ubuntu-latest | |
| if: ${{ github.ref_name == 'main' }} | |
| steps: | |
| - name: Push to dokku | |
| uses: dokku/github-action@master | |
| with: | |
| git_remote_url: 'ssh://dokku@dokku.sfcivictech.org:22/lvrp' | |
| ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} | |
| deploy_docker_image: sfcivictech/lvrp:${{ github.sha }} |