-
Notifications
You must be signed in to change notification settings - Fork 565
62 lines (56 loc) · 1.8 KB
/
crossversion.yaml
File metadata and controls
62 lines (56 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Crossversion smoke test
on:
workflow_call:
inputs:
sha:
description: 'SHA to run against'
required: false
type: string
file_issue_branch:
description: 'Branch used in filed issues; if unset, no issues are filed'
required: false
type: string
go_version:
description: 'Go version'
required: false
default: '1.26'
type: string
workflow_dispatch:
inputs:
sha:
description: 'SHA to run against'
required: false
type: string
file_issue_branch:
description: 'Branch used in filed issues; if unset, no issues are filed'
required: false
type: string
go_version:
description: 'Go version'
required: false
default: '1.26'
type: string
jobs:
crossversion-smoke-test:
name: crossversion-smoke-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.sha || github.sha }}
fetch-depth: 0
- name: Fetch all branches
run: git fetch --all
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ inputs.go_version }}
- run: ./scripts/crossversion_smoke_test.sh
- name: Post issue on failure
if: failure() && inputs.file_issue_branch != ''
id: create-or-update-unique-issue
uses: ./.github/actions/post-issue
with:
title: "${{ inputs.file_issue_branch }}: nightly ${{ github.job }} failed"
body: "The nightly ${{ github.job }} test run failed on ${{ inputs.sha }} (go${{ inputs.go_version }}). Please review the run [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})."
labels: "C-test-failure"