mirror of
https://github.com/docker/compose.git
synced 2025-07-26 15:14:04 +02:00
Build aci tests / windows tests on push or on PR that request @test-aci, @test-windows in description
This commit is contained in:
parent
c049f3c7af
commit
d884835ecb
@ -3,14 +3,41 @@ name: Continuous integration
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- test_optional_ci
|
||||||
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
check-optional-tests:
|
||||||
|
name: Check if needs to run ACI or Windows tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
trigger-aci: ${{steps.runacitest.outputs.triggered}}
|
||||||
|
trigger-windows: ${{steps.runwindowstest.outputs.triggered}}
|
||||||
|
steps:
|
||||||
|
- run: echo ${{github.ref}}
|
||||||
|
- run: echo ${{github.event_name}}
|
||||||
|
- uses: khan/pull-request-comment-trigger@master
|
||||||
|
name: Check if test ACI
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
id: runacitest
|
||||||
|
with:
|
||||||
|
trigger: '@test-aci'
|
||||||
|
- run: echo ${{steps.runacitest.outputs.triggered}}
|
||||||
|
- uses: khan/pull-request-comment-trigger@master
|
||||||
|
name: Check if test Windows
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
id: runwindowstest
|
||||||
|
with:
|
||||||
|
trigger: '@test-windows'
|
||||||
|
- run: echo ${{steps.runwindowstest.outputs.triggered}}
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: ACI e2e tests
|
name: ACI e2e tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
|
needs: check-optional-tests
|
||||||
|
if: github.ref == 'refs/heads/test_optional_ci' || needs.check-optional-tests.outputs.trigger-aci == 'true'
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go 1.14
|
- name: Set up Go 1.14
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v1
|
||||||
@ -41,6 +68,8 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
env:
|
env:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
|
needs: check-optional-tests
|
||||||
|
if: github.ref == 'refs/heads/test_optional_ci' || needs.check-optional-tests.outputs.trigger-windows == 'true'
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go 1.14
|
- name: Set up Go 1.14
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v1
|
Loading…
x
Reference in New Issue
Block a user