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 b099da7 commit b37af1a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ on:
pull_request:
branches: [main]

env:
ACCESS_TOKEN: ${{ secrets.VITE_ACCESS_TOKEN }}
OAUTH_TOKEN: ${{ secrets.VITE_OAUTH_TOKEN }}
SPACE_ID: ${{ vars.VITE_SPACE_ID }}

jobs:
test:
runs-on: ubuntu-latest
env:
ACCESS_TOKEN: ${{ secrets.VITE_ACCESS_TOKEN }}
OAUTH_TOKEN: ${{ secrets.VITE_OAUTH_TOKEN }}
SPACE_ID: ${{ vars.VITE_SPACE_ID }}

steps:
- uses: actions/checkout@v3
- name: Setup Node
Expand All @@ -24,7 +26,7 @@ jobs:
run: npm ci
- run: npm run lint
- run: npm run prettier -- --check
- name: "Create env file and Sets variables to unit tests"
- 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
Expand Down

0 comments on commit b37af1a

Please sign in to comment.