Skip to content

Commit

Permalink
(chore) Reuse env variables for turbo tasks (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen authored Sep 6, 2023
1 parent c52b0a6 commit 879aadf
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
TURBO_API: 'http://127.0.0.1:9080'
TURBO_TOKEN: ${{ secrets.TURBO_SERVER_TOKEN }}
TURBO_TEAM: ${{ github.repository_owner }}

steps:
- uses: actions/checkout@v3
Expand All @@ -29,13 +33,13 @@ jobs:
server-token: ${{ secrets.TURBO_SERVER_TOKEN }}

- name: Run lint
run: yarn turbo lint --color --concurrency=5 --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}" --team="${{ github.repository_owner }}"
run: yarn turbo lint --color

- name: Run tests
run: yarn turbo test --color --concurrency=5 --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}" --team="${{ github.repository_owner }}"
run: yarn turbo test --color

- name: Run build
run: yarn turbo build:lib --color --concurrency=5 --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}" --team="${{ github.repository_owner }}"
run: yarn turbo build:lib --color --concurrency=5

pre_release:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 879aadf

Please sign in to comment.