diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 877c5a9b0d9a..f38da2e96fe6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,15 @@ jobs: uses: actions/checkout@v2 - name: Use Node.js latest uses: actions/setup-node@v2-beta + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn config get cacheFolder)" + - uses: actions/cache@v2 + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- - name: Generate coverage report run: | make -j test-ci-coverage @@ -28,6 +37,15 @@ jobs: uses: actions/checkout@v2 - name: Use Node.js latest uses: actions/setup-node@v2-beta # Build Babel on latest node versions + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn config get cacheFolder)" + - uses: actions/cache@v2 + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- - name: Build run: | BABEL_ENV=test-legacy make -j bootstrap