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