@@ -79,30 +79,26 @@ jobs:
7979 pre-commit run --all-files --show-diff-on-failure --color=always
8080
8181 test :
82- strategy :
83- matrix :
84- go-version : [1.22.x, 1.23.x]
85- go-build-tags : ["--tags=goccy_gojson", ""]
86- platform : [ubuntu-latest]
87- runs-on : ${{ matrix.platform }}
88- if : (github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'ci/skip') && !contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')) || github.event_name == 'schedule'
89- steps :
90- - name : Checkout code
91- uses : actions/checkout@v3
92- - name : Install Go
93- uses : actions/setup-go@v4
94- with :
95- go-version : ${{ matrix.go-version }}
96- cache : true
97- cache-dependency-path : tests/go.sum
98- - name : Test
99- run : ./run-tests.sh
100- env :
101- TESTARGS : ${{ matrix.go-build-tags }}
82+ if : >
83+ (github.event.pull_request.draft == false &&
84+ !contains(github.event.pull_request.labels.*.name, 'ci/skip') &&
85+ !contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')) ||
86+ github.event_name == 'schedule'
87+ uses : ./.github/workflows/reusable-go-test.yml
88+ with :
89+ enable-status-reporting : true
90+ status-context : ' master/unit'
91+ secrets :
92+ PIPELINE_GITHUB_APP_ID : ${{ secrets.PIPELINE_GITHUB_APP_ID }}
93+ PIPELINE_GITHUB_APP_PRIVATE_KEY : ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
10294
10395 examples :
10496 runs-on : ubuntu-latest
105- if : (github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'ci/skip') && !contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')) || github.event_name == 'schedule'
97+ if : >
98+ (github.event.pull_request.draft == false &&
99+ !contains(github.event.pull_request.labels.*.name, 'ci/skip') &&
100+ !contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')) ||
101+ github.event_name == 'schedule'
106102 steps :
107103 - uses : actions/checkout@v3
108104 - name : Install Go
0 commit comments