Skip to content

[Snyk] Security upgrade golang from 1.18 to 1.22.7 #5

[Snyk] Security upgrade golang from 1.18 to 1.22.7

[Snyk] Security upgrade golang from 1.18 to 1.22.7 #5

name: "[Check] go validation"
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
validate-go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Build
run: go build -v . && go build -v ./...
- name: Test
run: go test -v ./...
- name: Lint
uses: golangci/[email protected]
with:
version: v1.49.0
- name: Version check
run: diff -u VERSION <(grep "var version = " trezord.go | cut -f 2 -d '"')