-
Notifications
You must be signed in to change notification settings - Fork 388
42 lines (40 loc) · 1021 Bytes
/
main_template.yml
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
on:
workflow_call:
inputs:
modulepath:
required: true
type: string
tests-extra-args:
required: false
type: string
go-version:
description: "Go version to use"
required: false
type: string
default: "1.22.x"
secrets:
codecov-token:
required: true
jobs:
lint:
name: Go Lint
uses: ./.github/workflows/lint_template.yml
with:
modulepath: ${{ inputs.modulepath }}
go-version: ${{ inputs.go-version }}
build:
name: Go Build
uses: ./.github/workflows/build_template.yml
with:
modulepath: ${{ inputs.modulepath }}
go-version: ${{ inputs.go-version }}
test:
name: Go Test
uses: ./.github/workflows/test_template.yml
with:
modulepath: ${{ inputs.modulepath }}
tests-timeout: "30m"
go-version: ${{ inputs.go-version }}
tests-extra-args: ${{ inputs.tests-extra-args }}
secrets:
codecov-token: ${{ secrets.codecov-token }}