Skip to content

Commit

Permalink
Use Ruby setup based on Gemfile in E2E Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
HeinrichApfelmus committed Jul 3, 2024
1 parent f9430c5 commit 8bfbcb6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/e2e-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
BRANCH: ${{ github.event.inputs.branch || 'rc-latest' }}
TAGS: ${{ github.event.inputs.tags || 'all' }}


steps:
- name: Check space
run: Get-PSDrive
Expand All @@ -46,6 +45,7 @@ jobs:
with:
ruby-version: 2.7.1
bundler-cache: true
working-directory: C:/cardano-wallet/test/e2e

- name: Install dependencies
working-directory: C:/cardano-wallet/test/e2e
Expand All @@ -58,13 +58,9 @@ jobs:
choco install nssm
choco install archiver
- name: 🕒 Get Date/Time
working-directory: C:/cardano-wallet/test/e2e
id: date-time
shell: bash
run: |
echo "value=$(rake datetime)" >> $GITHUB_OUTPUT
run: bundle exec rake datetime

- name: 💾 GH Cache node db
id: cache-node
Expand All @@ -90,27 +86,27 @@ jobs:
- name: ⚙️ Setup (get latest bins and configs and decode fixtures)
working-directory: C:/cardano-wallet/test/e2e
run: rake setup[preprod,%BRANCH%]
run: bundle exec rake setup[preprod,%BRANCH%]

- name: 🔍 Display versions
working-directory: C:/cardano-wallet/test/e2e
run: rake display_versions
run: bundle exec rake display_versions

- name: 🚀 Start node and wallet
working-directory: C:/cardano-wallet/test/e2e
run: rake start_node_and_wallet[preprod]
run: bundle exec rake start_node_and_wallet[preprod]

- name: ⏳ Wait until node is synced
working-directory: C:/cardano-wallet/test/e2e
run: rake wait_until_node_synced
run: bundle exec rake wait_until_node_synced

- name: 🧪 Run all tests
working-directory: C:/cardano-wallet/test/e2e
run: rake spec SPEC_OPTS="-t %TAGS%"
run: bundle exec rake spec SPEC_OPTS="-t %TAGS%"

- name: 🏁 Stop node and wallet
working-directory: C:/cardano-wallet/test/e2e
run: rake stop_node_and_wallet[preprod]
run: bundle exec rake stop_node_and_wallet[preprod]

- name: 💾 GH Save Cache of node db
if: always()
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ DEPENDENCIES
rspec (= 3.11.0)

BUNDLED WITH
2.1.4
2.4.22

0 comments on commit 8bfbcb6

Please sign in to comment.