Skip to content

Commit

Permalink
[ci] Small Tweaks (#875)
Browse files Browse the repository at this point in the history
* nits

* remove labels
  • Loading branch information
patrick-ogrady authored May 1, 2024
1 parent 2b47571 commit 0ec50cd
Showing 1 changed file with 31 additions and 38 deletions.
69 changes: 31 additions & 38 deletions .github/workflows/hypersdk-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ concurrency:
cancel-in-progress: true

jobs:
mock_gen:
name: Auto-Generated Code Checker
mock-gen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -22,24 +21,8 @@ jobs:
- shell: bash
run: scripts/tests.clean.sh

hypersdk-lint:
go-mod-tidy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: ./.github/actions/install-go
- name: Run static analysis tests
shell: bash
run: scripts/tests.lint.sh
- name: Run shellcheck
shell: bash
run: scripts/tests.shellcheck.sh

go_mod_tidy:
name: Tidy
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up Go
Expand All @@ -55,8 +38,22 @@ jobs:
- shell: bash
run: scripts/tests.clean.sh

hypersdk-unit-tests:
hypersdk-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: ./.github/actions/install-go
- name: Run static analysis tests
shell: bash
run: scripts/tests.lint.sh
- name: Run shellcheck
shell: bash
run: scripts/tests.shellcheck.sh

hypersdk-unit-tests:
runs-on: ubuntu-20.04-32
timeout-minutes: 10
steps:
- name: Checkout
Expand All @@ -67,17 +64,17 @@ jobs:
shell: bash
run: scripts/tests.unit.sh

finished-all-hypersdk-tests:
hypersdk-tests:
runs-on: ubuntu-latest
needs: [mock_gen, hypersdk-lint, go_mod_tidy, hypersdk-unit-tests]
needs: [mock-gen, go-mod-tidy, hypersdk-lint, hypersdk-unit-tests]
steps:
- name: Finished all HyperSDK tests
run: echo "Finished all HyperSDK tests"
- name: Finished HyperSDK tests
run: echo "Finished HyperSDK tests"

# TokenVM
tokenvm-lint:
needs: [hypersdk-tests]
runs-on: ubuntu-latest
needs: [finished-all-hypersdk-tests]
timeout-minutes: 10
steps:
- name: Checkout
Expand All @@ -98,8 +95,8 @@ jobs:
run: scripts/build.sh

tokenvm-unit-tests:
runs-on: ubuntu-latest
needs: [finished-all-hypersdk-tests]
needs: [hypersdk-tests]
runs-on: ubuntu-20.04-32
timeout-minutes: 10
steps:
- name: Checkout
Expand Down Expand Up @@ -140,8 +137,7 @@ jobs:
strategy:
matrix:
level: [v1, v2, v3] # v4 is not supported
runs-on:
labels: ubuntu-20.04-32
runs-on: ubuntu-20.04-32
timeout-minutes: 10
steps:
- name: Checkout
Expand All @@ -159,8 +155,7 @@ jobs:

tokenvm-sync-tests:
needs: [tokenvm-unit-tests]
runs-on:
labels: ubuntu-20.04-32
runs-on: ubuntu-20.04-32
timeout-minutes: 25
steps:
- name: Checkout
Expand Down Expand Up @@ -200,7 +195,7 @@ jobs:

# MorpheusVM
morpheusvm-lint:
needs: [finished-all-hypersdk-tests]
needs: [hypersdk-tests]
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand All @@ -222,8 +217,8 @@ jobs:
run: scripts/build.sh

morpheusvm-unit-tests:
needs: [finished-all-hypersdk-tests]
runs-on: ubuntu-latest
needs: [hypersdk-tests]
runs-on: ubuntu-20.04-32
timeout-minutes: 10
steps:
- name: Checkout
Expand Down Expand Up @@ -264,8 +259,7 @@ jobs:
strategy:
matrix:
level: [v1, v2, v3] # v4 is not supported
runs-on:
labels: ubuntu-20.04-32
runs-on: ubuntu-20.04-32
timeout-minutes: 10
steps:
- name: Checkout
Expand All @@ -283,8 +277,7 @@ jobs:

morpheusvm-sync-tests:
needs: [morpheusvm-unit-tests]
runs-on:
labels: ubuntu-20.04-32
runs-on: ubuntu-20.04-32
timeout-minutes: 25
steps:
- name: Checkout
Expand Down

0 comments on commit 0ec50cd

Please sign in to comment.