feat: Add turbo repo cache to workflow
This commit is contained in:
11
.github/workflows/build-and-test.yml
vendored
11
.github/workflows/build-and-test.yml
vendored
@@ -3,12 +3,11 @@ name: build-and-test
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
- develop
|
||||
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
- develop
|
||||
|
||||
@@ -22,6 +21,12 @@ jobs:
|
||||
node: [14]
|
||||
|
||||
steps:
|
||||
- name: TurboRepo local server
|
||||
uses: felixmosh/turborepo-gh-artifacts@v1
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
server-token: ${{ secrets.TURBO_SERVER_TOKEN }}
|
||||
|
||||
- name: Checkout 🛎
|
||||
uses: actions/checkout@master
|
||||
|
||||
@@ -51,7 +56,7 @@ jobs:
|
||||
run: yarn lint
|
||||
|
||||
- name: Build Library 👷
|
||||
run: yarn build
|
||||
run: yarn build --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}"
|
||||
|
||||
- name: Run tests 🧪
|
||||
run: yarn test
|
||||
|
||||
Reference in New Issue
Block a user