upgrade the actions for checkout and golang and remove Windows smoke test (#808)
* upgrade the actions for checkout and golang * delete the unstale windows golanglint-ci * use relative path * Update golangci-lint setup for Windows workflow * Remove Windows smoke test workflow
This commit is contained in:
@@ -6,14 +6,10 @@ on:
|
||||
|
||||
jobs:
|
||||
smoke_test_ubuntu:
|
||||
uses: air-verse/air/.github/workflows/smoke_test_reuse_job.yml@master
|
||||
uses: ./.github/workflows/smoke_test_reuse_job.yml
|
||||
with:
|
||||
run_on: ubuntu-latest
|
||||
smoke_test_macos:
|
||||
uses: air-verse/air/.github/workflows/smoke_test_reuse_job.yml@master
|
||||
uses: ./.github/workflows/smoke_test_reuse_job.yml
|
||||
with:
|
||||
run_on: macos-latest
|
||||
smoke_test_windows:
|
||||
uses: air-verse/air/.github/workflows/smoke_test_reuse_job_windows.yml@master
|
||||
with:
|
||||
run_on: windows-latest
|
||||
|
||||
@@ -13,10 +13,10 @@ jobs:
|
||||
runs-on: ${{ inputs.run_on }}
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
- name: Setup Go
|
||||
id: go
|
||||
uses: actions/setup-go@v5
|
||||
uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: ^1.25
|
||||
- name: golangci-lint
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
name: Reusable smoke test on Windows
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
run_on:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
smoke_test:
|
||||
name: Smoke test
|
||||
runs-on: ${{ inputs.run_on }}
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Go
|
||||
id: go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ^1.25
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v8
|
||||
with:
|
||||
install-mode: goinstall
|
||||
version: latest
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.x"
|
||||
- name: Install depend
|
||||
run: |
|
||||
python -m pip install pexpect
|
||||
- name: Install
|
||||
run: make install
|
||||
- name: Check rebuild
|
||||
id: check_rebuild
|
||||
working-directory: ./smoke_test
|
||||
run: |
|
||||
python smoke_test.py
|
||||
- uses: nick-invision/assert-action@v2
|
||||
with:
|
||||
expected: "PASS"
|
||||
actual: ${{ steps.check_rebuild.outputs.value }}
|
||||
@@ -24,7 +24,6 @@ linters:
|
||||
- examples$
|
||||
formatters:
|
||||
enable:
|
||||
- gci
|
||||
- goimports
|
||||
exclusions:
|
||||
generated: lax
|
||||
|
||||
@@ -4,7 +4,7 @@ LDFLAGS += -X "main.airVersion=$(AIRVER)"
|
||||
LDFLAGS += -X "main.goVersion=$(shell go version | sed -r 's/go version go(.*)\ .*/\1/')"
|
||||
|
||||
GO := GO111MODULE=on CGO_ENABLED=0 go
|
||||
GOLANGCI_LINT_VERSION = v2.2.0
|
||||
GOLANGCI_LINT_VERSION = v2.6.1
|
||||
GOLANGCI_LINT_CURRENT := $(shell golangci-lint --version 2>/dev/null | sed -n 's/.*version \([0-9.]*\).*/v\1/p')
|
||||
|
||||
.PHONY: init
|
||||
|
||||
Reference in New Issue
Block a user