Skip to content

Commit

Permalink
Try another way to fix github actions on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rvl committed May 3, 2021
1 parent 78b12f8 commit c09eb7d
Showing 1 changed file with 27 additions and 8 deletions.
35 changes: 27 additions & 8 deletions .github/workflows/ci.yml
Expand Up @@ -8,20 +8,39 @@ jobs:
name: Run tests on Windows
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1

- name: Configure cardano-wallet source
shell: powershell
run: |
$sources = (Get-Content "nix/sources.json" -Raw) | ConvertFrom-Json | Select -expand "cardano-wallet" | Select owner, repo, rev
echo "REPO_OWNER=${sources.owner}" >> $Env:GITHUB_ENV
echo "REPO_NAME=${sources.repo}" >> $Env:GITHUB_ENV
echo "COMMIT=${sources.rev}" >> $Env:GITHUB_ENV
- name: 'Wait for Hydra build'
uses: rvl/hydra-build-products-action@master
id: hydra
with:
node-version: 10
- run: npm install
hydra: 'https://hydra.iohk.io'
jobs: 'cardano-wallet-win64'

- name: Fetch cardano-wallet
shell: powershell
run: |
node scripts\download-hydra.js
Get-ChildItem
Expand-Archive -Force -Path "cardano-wallet-20*-win64.zip" -DestinationPath .
Expand-Archive -Force -Path "cardano-wallet-*-deployments.zip" -DestinationPath deployments
echo "Build product URLs: ${{ steps.hydra.outputs.buildProducts }}"
$urls = ${{ steps.hydra.outputs.buildProducts }}.Split(" ")
Invoke-WebRequest -Uri $urls[0] -OutFile "cardano-wallet-win64.zip"
Expand-Archive -Force -Path "cardano-wallet-win64.zip" -DestinationPath .
Invoke-WebRequest -Uri $urls[1] -OutFile "cardano-wallet-deployments.zip"
Expand-Archive -Force -Path "cardano-wallet-deployments.zip" -DestinationPath deployments
Get-ChildItem
echo "CARDANO_NODE_CONFIGS=$Env:GITHUB_WORKSPACE\deployments" >> $Env:GITHUB_ENV
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 10
- run: npm install
- run: npm test unit
- run: npm test integration
- run: npm test cli
Expand Down

0 comments on commit c09eb7d

Please sign in to comment.