From b37af1a86790b5904e9f7d701d6c24c8e9d39858 Mon Sep 17 00:00:00 2001 From: Thiago Saife Date: Wed, 27 Dec 2023 11:19:48 -0300 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f80d278b..fae85112 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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