Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed Jul 22, 2023
1 parent e2256b4 commit 3979a58
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/hypersdk-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
hypersdk-unit-tests:
if: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'run unit') }}
if: ${{ github.ref == 'refs/heads/main' || ((contains(github.event.action, 'synchronize') || contains(github.event.action, 'reopened')) && contains(github.event.pull_request.labels.*.name, 'run unit')) || (contains(github.event.action, 'labeled') && contains(github.event.label.name, 'run unit')) }}
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/simplevm-load-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
simplevm-load-tests:
if: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'run load') }}
if: ${{ github.ref == 'refs/heads/main' || ((contains(github.event.action, 'synchronize') || contains(github.event.action, 'reopened')) && contains(github.event.pull_request.labels.*.name, 'run load')) || (contains(github.event.action, 'labeled') && contains(github.event.label.name, 'run load')) }}
strategy:
matrix:
level: [v1, v2, v3] # v4 is not supported
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/simplevm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
simplevm-release:
# We build with 20.04 to maintain max compatibility: https://github.com/golang/go/issues/57328
runs-on: ubuntu-20.04-32
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.event.ref, 'refs/tags/v') || contains(github.event.pull_request.labels.*.name, 'run release') }}
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.event.ref, 'refs/tags/v') || ((contains(github.event.action, 'synchronize') || contains(github.event.action, 'reopened')) && contains(github.event.pull_request.labels.*.name, 'run release')) || (contains(github.event.action, 'labeled') && contains(github.event.label.name, 'run release')) }}
steps:
- name: Git checkout
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/simplevm-sync-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
simplevm-sync-tests:
if: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'run sync') }}
if: ${{ github.ref == 'refs/heads/main' || ((contains(github.event.action, 'synchronize') || contains(github.event.action, 'reopened')) && contains(github.event.pull_request.labels.*.name, 'run sync')) || (contains(github.event.action, 'labeled') && contains(github.event.label.name, 'run sync')) }}
runs-on:
labels: ubuntu-20.04-32
timeout-minutes: 25
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/simplevm-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
simplevm-unit-tests:
if: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'run unit') }}
if: ${{ github.ref == 'refs/heads/main' || ((contains(github.event.action, 'synchronize') || contains(github.event.action, 'reopened')) && contains(github.event.pull_request.labels.*.name, 'run unit')) || (contains(github.event.action, 'labeled') && contains(github.event.label.name, 'run unit')) }}
runs-on:
labels: ubuntu-20.04-32
timeout-minutes: 10
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tokenvm-load-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
tokenvm-load-tests:
if: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'run load') }}
if: ${{ github.ref == 'refs/heads/main' || ((contains(github.event.action, 'synchronize') || contains(github.event.action, 'reopened')) && contains(github.event.pull_request.labels.*.name, 'run load')) || (contains(github.event.action, 'labeled') && contains(github.event.label.name, 'run load')) }}
strategy:
matrix:
level: [v1, v2, v3] # v4 is not supported
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tokenvm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
tokenvm-release:
# We build with 20.04 to maintain max compatibility: https://github.com/golang/go/issues/57328
runs-on: ubuntu-20.04-32
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.event.ref, 'refs/tags/v') || contains(github.event.pull_request.labels.*.name, 'run release') }}
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.event.ref, 'refs/tags/v') || ((contains(github.event.action, 'synchronize') || contains(github.event.action, 'reopened')) && contains(github.event.pull_request.labels.*.name, 'run release')) || (contains(github.event.action, 'labeled') && contains(github.event.label.name, 'run release')) }}
steps:
- name: Git checkout
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tokenvm-sync-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
tokenvm-sync-tests:
if: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'run sync') }}
if: ${{ github.ref == 'refs/heads/main' || ((contains(github.event.action, 'synchronize') || contains(github.event.action, 'reopened')) && contains(github.event.pull_request.labels.*.name, 'run sync')) || (contains(github.event.action, 'labeled') && contains(github.event.label.name, 'run sync')) }}
runs-on:
labels: ubuntu-20.04-32
timeout-minutes: 25
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tokenvm-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
tokenvm-unit-tests:
if: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'run unit') }}
if: ${{ github.ref == 'refs/heads/main' || ((contains(github.event.action, 'synchronize') || contains(github.event.action, 'reopened')) && contains(github.event.pull_request.labels.*.name, 'run unit')) || (contains(github.event.action, 'labeled') && contains(github.event.label.name, 'run unit')) }}
runs-on:
labels: ubuntu-20.04-32
timeout-minutes: 10
Expand Down

0 comments on commit 3979a58

Please sign in to comment.