Skip to content

Commit

Permalink
ci: Allow to run github action tests manually (#3841)
Browse files Browse the repository at this point in the history
  • Loading branch information
catap committed Mar 12, 2024
1 parent 8f1e7d0 commit f441463
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/run-jdk-compliance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Run tests JDK compliance tests
on:
workflow_call:
pull_request:
workflow_dispatch:
concurrency:
group: jdk-compliance-${{ github.head_ref }}-${{ github.event_name }}
cancel-in-progress: true
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/run-tests-linux-multiarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
schedule:
# Every day at 2 AM UTC
- cron: "0 2 * * *"
workflow_dispatch:
concurrency:
group: linux-multiarch-${{ github.head_ref }}-${{ github.event_name }}
cancel-in-progress: true
Expand All @@ -13,7 +14,7 @@ jobs:
# Build testing image that would be used to build and run against different platforms
# Currently only Linux x64 is tested
build-image:
if: "github.event_name == 'pull_request' || ((github.event_name == 'schedule' || github.event_name == 'workflow_call') && github.repository == 'scala-native/scala-native')"
if: "github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' || ((github.event_name == 'schedule' || github.event_name == 'workflow_call') && github.repository == 'scala-native/scala-native')"
name: Build image
runs-on: ubuntu-22.04
outputs:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/run-tests-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
schedule:
# Every day at 2 AM UTC
- cron: "0 2 * * *"
workflow_dispatch:
concurrency:
group: linux-${{ github.head_ref }}-${{ github.event_name }}
cancel-in-progress: true
Expand All @@ -15,7 +16,7 @@ jobs:
# Test tools, if any of them fails, further tests will not start.
tests-tools:
name: Compile & test tools
if: "github.event_name == 'pull_request' || ((github.event_name == 'schedule' || github.event_name == 'workflow_call') && github.repository == 'scala-native/scala-native')"
if: "github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' || ((github.event_name == 'schedule' || github.event_name == 'workflow_call') && github.repository == 'scala-native/scala-native')"
runs-on: ubuntu-22.04
env:
ENABLE_EXPERIMENTAL_COMPILER: true
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/run-tests-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ on:
schedule:
# Every day at 2 AM UTC
- cron: "0 2 * * *"
workflow_dispatch:
concurrency:
group: macOS-${{ github.head_ref }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
test-runtime:
name: Test runtime
if: "github.event_name == 'pull_request' || ((github.event_name == 'schedule' || github.event_name == 'workflow_call') && github.repository == 'scala-native/scala-native')"
if: "github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' || ((github.event_name == 'schedule' || github.event_name == 'workflow_call') && github.repository == 'scala-native/scala-native')"
runs-on: macos-12
env:
ENABLE_EXPERIMENTAL_COMPILER: true
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/run-tests-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ on:
schedule:
# Every day at 2 AM UTC
- cron: "0 2 * * *"
workflow_dispatch:
concurrency:
group: windows-${{ github.head_ref }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
test-runtime:
name: Test runtime
if: "github.event_name == 'pull_request' || ((github.event_name == 'schedule' || github.event_name == 'workflow_call') && github.repository == 'scala-native/scala-native')"
if: "github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' || ((github.event_name == 'schedule' || github.event_name == 'workflow_call') && github.repository == 'scala-native/scala-native')"
runs-on: windows-2022
env:
ENABLE_EXPERIMENTAL_COMPILER: true
Expand Down

0 comments on commit f441463

Please sign in to comment.