commit
5188dc8a19
12
.github/workflows/test.yaml
vendored
12
.github/workflows/test.yaml
vendored
@ -1,9 +1,11 @@
|
|||||||
---
|
---
|
||||||
name: test
|
name: test
|
||||||
|
|
||||||
on: ["push", "pull_request"]
|
on:
|
||||||
|
pull_request: {}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
# be sure to update the version in release.yaml too
|
||||||
GO_VERSION: "1.22"
|
GO_VERSION: "1.22"
|
||||||
LINUX_ARCHES: "amd64 386 arm arm64 s390x mips64le ppc64le riscv64"
|
LINUX_ARCHES: "amd64 386 arm arm64 s390x mips64le ppc64le riscv64"
|
||||||
|
|
||||||
@ -16,7 +18,7 @@ jobs:
|
|||||||
- name: setup go
|
- name: setup go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- uses: ibiqlik/action-yamllint@v3
|
- uses: ibiqlik/action-yamllint@v3
|
||||||
with:
|
with:
|
||||||
format: auto
|
format: auto
|
||||||
@ -34,7 +36,7 @@ jobs:
|
|||||||
- name: setup go
|
- name: setup go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- name: Build on all supported architectures
|
- name: Build on all supported architectures
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
@ -58,7 +60,7 @@ jobs:
|
|||||||
- name: setup go
|
- name: setup go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- name: Set up Go for root
|
- name: Set up Go for root
|
||||||
run: |
|
run: |
|
||||||
sudo ln -sf `which go` `sudo which go` || true
|
sudo ln -sf `which go` `sudo which go` || true
|
||||||
@ -89,6 +91,6 @@ jobs:
|
|||||||
- name: setup go
|
- name: setup go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- name: test
|
- name: test
|
||||||
run: bash ./test_windows.sh
|
run: bash ./test_windows.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user