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