diff --git a/.github/workflows/verify-pr-build.yaml b/.github/workflows/verify-pr-build.yaml index a03e0d1..4f62ea4 100644 --- a/.github/workflows/verify-pr-build.yaml +++ b/.github/workflows/verify-pr-build.yaml @@ -1,4 +1,4 @@ -name: Verify PR build +name: Verify PR on: pull_request: branches: @@ -21,5 +21,15 @@ jobs: # This line is needed for nx affected to work when CI is running on a PR - run: git branch --track main origin/main + - name: Create .env file + env: + API_USERNAME: ${{ secrets.API_USERNAME }} + API_PASSWORD: ${{ secrets.API_PASSWORD }} + PROD_ENV_FILE: ${{ secrets.PROD_ENV_FILE }} + run: | + touch packages/sdk/.env + echo API_USERNAME=$API_USERNAME > packages/sdk/.env + echo API_PASSWORD=$API_PASSWORD > packages/sdk/.env + - run: npx nx format:check - - run: npx nx affected -t lint,build --parallel=3 + - run: npx nx affected -t lint,test,build --parallel=3