Skip to content

Commit

Permalink
ci: set yarn version berry
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewjablack committed Oct 20, 2024
1 parent 1f65f70 commit 4b7bf7a
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'

- name: Setup Yarn
run: yarn set version berry

- name: Cache Bitcoin node
id: bitcoin-cache
uses: actions/cache@v2
Expand All @@ -27,14 +37,7 @@ jobs:
sleep 5
bitcoin-cli -regtest -rpcport=18443 -rpcuser=bitcoin -rpcpassword=local321 generatetoaddress 101 $(bitcoin-cli -regtest -rpcport=18443 -rpcuser=bitcoin -rpcpassword=local321 getnewaddress '' 'bech32')
- uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'

- name: restore node_modules from cache
- name: Cache node_modules
id: node-modules-cache
uses: actions/cache@v2
with:
Expand All @@ -43,7 +46,7 @@ jobs:
node_modules
*/*/node_modules
- name: yarn install
- name: Install dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable

Expand All @@ -56,4 +59,4 @@ jobs:
- name: Get test coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4b7bf7a

Please sign in to comment.