From d90c1c6eac219ca8c2c06aab46be246994b668eb Mon Sep 17 00:00:00 2001 From: Michael FIG Date: Wed, 29 Jan 2020 15:14:27 -0600 Subject: [PATCH] fix(github): update build process * install Go explicitly and cache the Go modules * cache the Yarn modules --- .github/workflows/ag-solo-xs.yml | 4 +++- .github/workflows/test-all-packages.yml | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ag-solo-xs.yml b/.github/workflows/ag-solo-xs.yml index 59b4e684a99..5f3126bf56e 100644 --- a/.github/workflows/ag-solo-xs.yml +++ b/.github/workflows/ag-solo-xs.yml @@ -20,7 +20,9 @@ jobs: uses: actions/cache@v1 with: path: ~/.cache/yarn - key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- - name: yarn install run: yarn install - name: yarn build diff --git a/.github/workflows/test-all-packages.yml b/.github/workflows/test-all-packages.yml index e4ce6725409..8a49192c3c7 100644 --- a/.github/workflows/test-all-packages.yml +++ b/.github/workflows/test-all-packages.yml @@ -13,6 +13,24 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 + - name: cache node modules + uses: actions/cache@v1 + with: + path: ~/.cache/yarn + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + - name: Set up Go 1.13 + uses: actions/setup-go@v1 + with: + go-version: 1.13 + - name: cache Go modules + uses: actions/cache@v1 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- # 'yarn install' must be done at the top level, to build all the # cross-package symlinks - name: yarn install