Skip to content

Commit

Permalink
fix(github): update build process
Browse files Browse the repository at this point in the history
* install Go explicitly and cache the Go modules
* cache the Yarn modules
  • Loading branch information
michaelfig committed Feb 1, 2020
1 parent d4af74f commit d90c1c6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ag-solo-xs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/test-all-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d90c1c6

Please sign in to comment.