diff --git a/.github/workflows/build_test_deploy.yml b/.github/workflows/build_test_deploy.yml index fb1ee5df1a437..ec56f5866227a 100644 --- a/.github/workflows/build_test_deploy.yml +++ b/.github/workflows/build_test_deploy.yml @@ -12,14 +12,14 @@ jobs: env: NEXT_TELEMETRY_DISABLED: 1 steps: + - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* + - run: yarn install --frozen-lockfile --check-files - uses: actions/checkout@v2 - uses: actions/cache@v2 id: cache-build with: - path: '.' + path: './*' key: ${{ github.sha }} - - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* - - run: yarn install --frozen-lockfile --check-files lint: runs-on: ubuntu-latest @@ -28,7 +28,7 @@ jobs: - uses: actions/cache@v2 id: restore-build with: - path: '.' + path: './*' key: ${{ github.sha }} - run: yarn lint @@ -42,7 +42,7 @@ jobs: - uses: actions/cache@v2 id: restore-build with: - path: '.' + path: './*' key: ${{ github.sha }} - run: ./check-pre-compiled.sh @@ -62,7 +62,7 @@ jobs: - uses: actions/cache@v2 id: restore-build with: - path: '.' + path: './*' key: ${{ github.sha }} # TODO: remove after we fix watchpack watching too much @@ -107,7 +107,7 @@ jobs: - uses: actions/cache@v2 id: restore-build with: - path: '.' + path: './*' key: ${{ github.sha }} - run: node run-tests.js test/integration/production/test/index.test.js @@ -126,7 +126,7 @@ jobs: - uses: actions/cache@v2 id: restore-build with: - path: '.' + path: './*' key: ${{ github.sha }} - run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js test/integration/production/test/index.test.js' @@ -146,7 +146,7 @@ jobs: - uses: actions/cache@v2 id: restore-build with: - path: '.' + path: './*' key: ${{ github.sha }} - run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js test/integration/production-nav/test/index.test.js' @@ -160,7 +160,7 @@ jobs: - uses: actions/cache@v2 id: restore-build with: - path: '.' + path: './*' key: ${{ github.sha }} - run: ./publish-release.sh