diff --git a/.github/workflows/ci-go.yml b/.github/workflows/ci-go.yml index d51c922a2ea23..0f5dd4dbf0fc1 100644 --- a/.github/workflows/ci-go.yml +++ b/.github/workflows/ci-go.yml @@ -28,30 +28,26 @@ jobs: id: go - name: Setup Node.js environment - uses: actions/setup-node@v1.4.4 - with: - node-version: 14 - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - uses: actions/cache@v2 - id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) + uses: actions/setup-node@v2.5.0 with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + cache: yarn + cache-dependency-path: yarn.lock + node-version: 14.x - name: Yarn Install run: yarn install - name: Build & Unit Test run: yarn turbo run test --scope=cli --scope=create-turbo + env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ secrets.TURBO_TEAM }} - name: Lint run: yarn turbo run lint --scope=cli + env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ secrets.TURBO_TEAM }} - name: E2E Tests run: |