forked from gnolang/gno
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.15 KB
/
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
on:
workflow_call:
inputs:
modulepath:
required: true
type: string
tests-extra-args:
required: false
type: string
secrets:
codecov-token:
required: true
# TODO: environment variables cannot be sent to reusable workflows: https://docs.github.com/en/actions/using-workflows/reusing-workflows#limitations
# env:
# GO_VERSION: "1.22.x"
jobs:
lint:
name: Go Linter
uses: ./.github/workflows/lint_template.yml
with:
modulepath: ${{ inputs.modulepath }}
go-version: "1.22.x"
build:
name: Go Build
uses: ./.github/workflows/build_template.yml
with:
modulepath: ${{ inputs.modulepath }}
go-version: "1.22.x"
test:
name: Go Test
uses: ./.github/workflows/test_template.yml
with:
modulepath: ${{ inputs.modulepath }}
tests-timeout: "30m"
go-version: "1.22.x"
tests-extra-args: ${{ inputs.tests-extra-args }}
secrets:
codecov-token: ${{ secrets.codecov-token }}