Skip to content

build: Downgrade Go version from 1.22.2 to 1.18 in go.mod #7

build: Downgrade Go version from 1.22.2 to 1.18 in go.mod

build: Downgrade Go version from 1.22.2 to 1.18 in go.mod #7

Workflow file for this run

name: "Build and Test"
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.22.x]
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Display Go version
run: go version
- name: Install dependencies
run: go get -v -t -d ./...
- name: Lint with golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.58
- name: Test with Go
run: go test -json > TestResults-${{ matrix.go-version }}.json
- name: Upload Go test results
uses: actions/upload-artifact@v4
with:
name: Go-results-${{ matrix.go-version }}
path: TestResults-${{ matrix.go-version }}.json