Skip to content

Commit f417c62

Browse files
authored
update to go 1.20, update CI scripts (#65)
1 parent 282ca71 commit f417c62

File tree

3 files changed

+28
-38
lines changed

3 files changed

+28
-38
lines changed

.github/workflows/lint-govuln.yml

-35
This file was deleted.

.github/workflows/linux.yml

+28-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ on:
77
branches: [main]
88

99
jobs:
10-
build:
10+
test:
1111
strategy:
1212
matrix:
13-
go-version: [1.18.x, 1.19.x]
13+
go-version: [1.19.x, 1.20.x]
1414
os: [ubuntu-latest]
1515
runs-on: ${{ matrix.os }}
1616
steps:
@@ -30,3 +30,29 @@ jobs:
3030
run: |
3131
cd github.com/vanadium/go.lib
3232
go test --race --covermode=atomic ./...
33+
34+
linting:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout code
38+
uses: actions/checkout@v3
39+
with:
40+
path: github.com/vanadium/go.lib
41+
42+
- name: Set up Go
43+
uses: actions/setup-go@v3
44+
with:
45+
go-version: 1.20.x
46+
cache: true
47+
cache-dependency-path: github.com/vanadium/go.lib/go.sum
48+
49+
- name: Lint
50+
uses: golangci/golangci-lint-action@v3
51+
with:
52+
version: latest
53+
working-directory: github.com/vanadium/go.lib
54+
55+
- name: Vulnerabilities
56+
run: |
57+
go install golang.org/x/vuln/cmd/govulncheck@latest
58+
cd github.com/vanadium/go.lib && govulncheck ./...

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
![linux](https://github.com/vanadium/go.lib/actions/workflows/linux.yml/badge.svg)
22
![macos](https://github.com/vanadium/go.lib/actions/workflows/macos.yml/badge.svg)
33
![windows](https://github.com/vanadium/go.lib/actions/workflows/windows.yml/badge.svg)
4-
![lint-govuln](https://github.com/vanadium/go.lib/actions/workflows/lint-govuln.yml/badge.svg)
54
![CodeQL](https://github.com/vanadium/go.lib/actions/workflows/codeql.yml/badge.svg)
65

76
This repository contains general purpose libraries created by and used by the

0 commit comments

Comments
 (0)