Skip to content

Commit

Permalink
merged test workflows into build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oruchreis committed Oct 29, 2024
1 parent 9ecaa87 commit 62abaf6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 24 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,22 @@ on:
branches: [ master ]
paths:
- 'src/**.csproj'
- '.github/workflows/build.yml'
workflow_run:
workflows:
- 'Windows Test'
- 'Unix Test'
branches: [ master ]
types:
- completed
- 'src/**.cs'
- 'src/**.dll'
- 'src/**.so'
- 'src/**.dylib'
- '.github/workflows/windows-test.yml'
- '.github/workflows/unix-test.yml'

jobs:
windows-test:
uses: ./.github/workflows/windows-test.yml

unix-test:
uses: ./.github/workflows/unix-test.yml

upload-packages:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
needs: [windows-test, unix-test]
runs-on: windows-2022
strategy:
matrix:
Expand All @@ -31,6 +35,8 @@ jobs:
- 'Embedded.NativeAssets.AlpineLinux-x64'
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.workflow_run.head_branch }}
- name: Caching
uses: actions/cache@v2
with:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/unix-test.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
name: Unix Test

on:
push:
branches: [ master ]
paths:
- 'src/**.csproj'
- 'src/**.cs'
- 'src/**.so'
- 'src/**.dylib'
- '.github/workflows/unix-test.yml'
workflow_dispatch:
workflow_call:

jobs:
ubuntu-test:
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/windows-test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
name: Windows Test

on:
push:
branches: [ master ]
paths:
- 'src/**.csproj'
- 'src/**.cs'
- 'src/**.dll'
- '.github/workflows/windows-test.yml'
workflow_dispatch:
workflow_call:

jobs:
windows-test:
Expand Down

0 comments on commit 62abaf6

Please sign in to comment.