feat: Add turbo repo cache to workflow

This commit is contained in:
Braks
2022-04-11 11:30:10 +02:00
parent 0184cdd2a9
commit 1628cf4e64
+8 -3
View File
@@ -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