From bf1b0c14a9e51725ed381ba427b3fe60fe97144e Mon Sep 17 00:00:00 2001 From: Arnaud Bailly Date: Fri, 13 Dec 2024 13:47:59 +0100 Subject: [PATCH] Remove E2E GHA workflows --- .github/workflows/e2e-windows.yml | 158 ------------------------------ .github/workflows/rubocop.yml | 35 ------- 2 files changed, 193 deletions(-) delete mode 100644 .github/workflows/e2e-windows.yml delete mode 100644 .github/workflows/rubocop.yml diff --git a/.github/workflows/e2e-windows.yml b/.github/workflows/e2e-windows.yml deleted file mode 100644 index edc342362e2..00000000000 --- a/.github/workflows/e2e-windows.yml +++ /dev/null @@ -1,158 +0,0 @@ -name: E2E Windows - -on: - push: - tags: - - rc-latest - - workflow_dispatch: - inputs: - branch: - description: 'Run tests against branch' - default: 'rc-latest' - tags: - description: 'Test tags (all, light, offchain...)' - default: 'all' -jobs: - test: - concurrency: - group: windows-e2e-group - cancel-in-progress: false - - runs-on: windows-latest - - env: - NETWORK: preprod - BUILDKITE_API_TOKEN: ${{ secrets.BUILDKITE_TOKEN_READ_BUILDS_ARTIFACTS }} - TESTS_E2E_FIXTURES: ${{ secrets.TESTS_E2E_FIXTURES }} - BRANCH: ${{ github.event.inputs.branch || 'rc-latest' }} - TAGS: ${{ github.event.inputs.tags || 'all' }} - - steps: - - name: Check space - run: Get-PSDrive - - - name: configure Pagefile - uses: al-cheb/configure-pagefile-action@v1.2 - with: - minimum-size: 16GB - maximum-size: 24GB - disk-root: "C:" - - - name: Checkout - shell: bash - run: | - git clone -b $BRANCH https://github.com/cardano-foundation/cardano-wallet.git C:/cardano-wallet --depth 1 --no-single-branch - cd /c/cardano-wallet - - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - 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 - run: bundle install - - - name: Prepare Windows - run: | - choco install wget - choco install unzip - choco install nssm - choco install archiver - - - name: ๐Ÿ•’ Get Date/Time - working-directory: C:/cardano-wallet/test/e2e - run: bundle exec rake datetime - - - name: ๐Ÿ’พ GH Cache node db - id: cache-node - uses: actions/cache@v3 - with: - path: C:/cardano-wallet/test/e2e/state/node_db/preprod - key: node-db-e2e-windows-preprod - - - name: Fetch preprod snapshot - if: steps.cache-node.outputs.cache-hit != 'true' - working-directory: C:/cardano-wallet/test/e2e - run: | - mkdir state -ErrorAction SilentlyContinue - cd state - mkdir node_db - cd node_db - mkdir preprod - cd preprod - curl -s https://downloads.csnapshots.io/testnet/testnet-db-snapshot.json | jq -r .[].file_name > snapshot.json - curl -o snapshot.tar.lz4 https://downloads.csnapshots.io/testnet/$(cat snapshot.json) - arc unarchive snapshot.tar.lz4 - mv db/* . - - - name: โš™๏ธ Setup (get latest bins and configs and decode fixtures) - working-directory: C:/cardano-wallet/test/e2e - run: bundle exec rake setup[preprod,%BRANCH%] - - - name: ๐Ÿ” Display versions - working-directory: C:/cardano-wallet/test/e2e - run: bundle exec rake display_versions - - - name: ๐Ÿš€ Start node and wallet - working-directory: C:/cardano-wallet/test/e2e - run: bundle exec rake start_node_and_wallet[preprod] - - - name: โณ Wait until node is synced - working-directory: C:/cardano-wallet/test/e2e - run: bundle exec rake wait_until_node_synced - - - name: ๐Ÿงช Run all tests - working-directory: C:/cardano-wallet/test/e2e - run: bundle exec rake spec SPEC_OPTS="-t %TAGS%" - - - name: ๐Ÿ Stop node and wallet - working-directory: C:/cardano-wallet/test/e2e - run: bundle exec rake stop_node_and_wallet[preprod] - - - name: ๐Ÿ’พ GH Save Cache of node db - if: always() - uses: actions/cache/save@v3 - with: - path: C:/cardano-wallet/test/e2e/state/node_db/preprod - key: node-db-e2e-windows-preprod - - - name: ๐Ÿ“Ž Upload state - uses: actions/upload-artifact@v3 - if: always() - with: - name: windows-state - path: | - C:/cardano-wallet/test/e2e/state/logs - C:/cardano-wallet/test/e2e/state/configs - C:/cardano-wallet/test/e2e/state/wallet_db - - report: - needs: [test] - if: always() - runs-on: ubuntu-latest - steps: - - name: Slack Notification on failure - if: needs.test.result != 'success' - uses: rtCamp/action-slack-notify@v2 - env: - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} - SLACK_ICON_EMOJI: ':poop:' - SLACK_USERNAME: 'GitHub Action' - SLACK_MESSAGE: | - *Job Link:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - SLACK_COLOR: '#FF0000' - - - name: Slack Notification on success - if: needs.test.result == 'success' - uses: rtCamp/action-slack-notify@v2 - env: - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} - SLACK_ICON_EMOJI: ':rocket:' - SLACK_USERNAME: 'GitHub Action' - SLACK_MESSAGE: | - *Job Link:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - SLACK_COLOR: '#00FF00' \ No newline at end of file diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml deleted file mode 100644 index 37f46e0b776..00000000000 --- a/.github/workflows/rubocop.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Rubocop - -on: - push: - branches: [ "master" ] - paths: ['test/e2e/**.rb'] - pull_request: - branches: [ "master" ] - paths: ['test/e2e/**.rb'] - -permissions: - contents: read - -defaults: - run: - working-directory: ./test/e2e - -jobs: - rubocop-linter: - runs-on: ubuntu-latest - - steps: - - name: ๐Ÿ“ฅ Checkout repository - uses: actions/checkout@v3.2.0 - - - name: ๐Ÿ’Ž Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: 3.1.2 - bundler-cache: true - - - name: ๐Ÿ‘ฎ Rubocop - run: | - gem install rubocop - rubocop