From a0189acbecd5166f2de6c0fed8800e17bfc7397a Mon Sep 17 00:00:00 2001 From: Nicolas Date: Tue, 17 Sep 2024 12:58:49 -0400 Subject: [PATCH] Update fly.yml --- .github/workflows/fly.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/fly.yml b/.github/workflows/fly.yml index 3407351..ed8dade 100644 --- a/.github/workflows/fly.yml +++ b/.github/workflows/fly.yml @@ -32,8 +32,41 @@ env: ENV: ${{ secrets.ENV }} jobs: + pre-deploy: + name: Pre-deploy checks + runs-on: ubuntu-latest + services: + redis: + image: redis + ports: + - 6379:6379 + steps: + - uses: actions/checkout@v3 + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "20" + - name: Install pnpm + run: npm install -g pnpm + - name: Install dependencies + run: pnpm install + working-directory: ./apps/api + - name: Start the application + run: npm start & + working-directory: ./apps/api + id: start_app + - name: Start workers + run: npm run workers & + working-directory: ./apps/api + id: start_workers + - name: Run E2E tests + run: | + npm run test:prod + working-directory: ./apps/api + deploy: name: Deploy app + needs: pre-deploy runs-on: ubuntu-latest steps: - uses: actions/checkout@v3