Skip to content

Commit

Permalink
adding env variables to gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedcognite committed Jan 10, 2024
1 parent b5bfef0 commit dd8feaa
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/verify-pr-build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Verify PR build
name: Verify PR
on:
pull_request:
branches:
Expand All @@ -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

0 comments on commit dd8feaa

Please sign in to comment.