Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yjaaidi committed Jun 6, 2024
1 parent 0f01cd1 commit fcb2f47
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Test & Deploy

on:
push:
branches:
- main
pull_request:

permissions:
Expand All @@ -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/typescript \
@nx/vite \
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

0 comments on commit fcb2f47

Please sign in to comment.