Marketplace client 8569918d27ddb43b484dbd057b83e8855acfdb05 (#144) #1035
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push] | |
name: test | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21.x | |
- uses: actions/cache@v2 | |
with: | |
# In order: | |
# * Module download cache | |
# * Build cache (Linux) | |
# * Build cache (Mac) | |
# * Build cache (Windows) | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
~/Library/Caches/go-build | |
%LocalAppData%\go-build | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Install node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '14.x' | |
- uses: actions/cache@master | |
id: yarn-cache | |
with: | |
path: | | |
./testutil/chain/node_modules | |
./testutil/chain/*/*/node_modules | |
key: ${{ runner.os }}-install-${{ hashFiles('./testutil/chain/**/package.json', './testutil/chain/**/yarn.lock') }} | |
- name: Yarn install | |
run: cd ./testutil/chain && yarn install --network-concurrency 1 | |
if: ${{ steps.yarn-cache.outputs.cache-hit != 'true' }} | |
- name: Boot testchain | |
run: make start-testchain-verbose & | |
- name: Test | |
run: make test |