Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Saife authored Dec 27, 2023
1 parent 6f53ae4 commit 2b4a595
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,24 @@ jobs:
run: npm ci
- run: npm run lint
- run: npm run prettier -- --check
- name: "Sets variables to unit tests"
run: echo "Sets variables"
- name: "Create env file and Sets variables to unit tests"
run: |
echo VITE_ACCESS_TOKEN="$ACCESS_TOKEN" >> ~/.env.test
echo VITE_OAUTH_TOKEN="OAUTH_TOKEN" >> ~/.env.test
echo VITE_SPACE_ID="SPACE_ID" >> ~/.env.test
echo "cat .env.test"
cat .env.test
echo "ls -a ."
ls -a .
echo "ls -a ${{ github.workspace }}"
ls -a ${{ github.workspace }}
shell: bash
env:
VITE_ACCESS_TOKEN: ${{ vars.VITE_ACCESS_TOKEN }}
VITE_OAUTH_TOKEN: ${{ vars.VITE_OAUTH_TOKEN }}
VITE_SPACE_ID: ${{ vars.VITE_SPACE_ID }}
ACCESS_TOKEN: ${{ secrets.VITE_ACCESS_TOKEN }}
OAUTH_TOKEN: ${{ secrets.VITE_OAUTH_TOKEN }}
SPACE_ID: ${{ vars.VITE_SPACE_ID }}
- run: npm run test
- run: npm run build

0 comments on commit 2b4a595

Please sign in to comment.