From 85e814efb6c60b91565af8e30befa73cc0514453 Mon Sep 17 00:00:00 2001 From: Younes Jaaidi Date: Thu, 6 Jun 2024 18:33:21 +0200 Subject: [PATCH] debug --- .github/workflows/test.yml | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c548b46..ded3a53 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,8 +2,6 @@ name: Test & Deploy on: push: - branches: - - main pull_request: permissions: @@ -21,17 +19,22 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 21 + - uses: oven-sh/setup-bun@v1 + with: + bun-version: latest - run: | - npm install -g firebase-tools nx - - - run: bunx nx-cloud start-ci-run --distribute-on="3 linux-medium-js-bun" - - run: bunx nx-cloud record -- nx format:check - - run: bunx nx affected -t build lint test - - name: 🔐 Set up service account - env: - FIREBASE_SERVICE_ACCOUNT_MARMICODE_COOKBOOK: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_MARMICODE_COOKBOOK }} - run: | - echo $FIREBASE_SERVICE_ACCOUNT_MARMICODE_COOKBOOK > ~/.firebase-sa.json - echo "GOOGLE_APPLICATION_CREDENTIALS=$HOME/.firebase-sa.json" >> "$GITHUB_ENV" - - name: 🚀 Deploy - run: bunx nx affected -t deploy --no-agents + rm bun.lockb package.json + npm init -y + npm install \ + @docusaurus/tsconfig \ + @nx/eslint \ + @nx/eslint-plugin \ + @nx/react \ + @nx/vite \ + @typescript-eslint/eslint-plugin \ + firebase-tools \ + nx \ + --ignore-scripts + git checkout bun.lockb package.json + - run: npx nx-cloud start-ci-run --distribute-on="3 linux-medium-js-bun" + - run: npx nx affected -t build lint test --verbose