Skip to content

Commit

Permalink
update to go 1.20, update CI scripts (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosnicolaou authored Feb 3, 2023
1 parent 282ca71 commit f417c62
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 38 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/lint-govuln.yml

This file was deleted.

30 changes: 28 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ on:
branches: [main]

jobs:
build:
test:
strategy:
matrix:
go-version: [1.18.x, 1.19.x]
go-version: [1.19.x, 1.20.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -30,3 +30,29 @@ jobs:
run: |
cd github.com/vanadium/go.lib
go test --race --covermode=atomic ./...
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
path: github.com/vanadium/go.lib

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.x
cache: true
cache-dependency-path: github.com/vanadium/go.lib/go.sum

- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
working-directory: github.com/vanadium/go.lib

- name: Vulnerabilities
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
cd github.com/vanadium/go.lib && govulncheck ./...
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
![linux](https://github.com/vanadium/go.lib/actions/workflows/linux.yml/badge.svg)
![macos](https://github.com/vanadium/go.lib/actions/workflows/macos.yml/badge.svg)
![windows](https://github.com/vanadium/go.lib/actions/workflows/windows.yml/badge.svg)
![lint-govuln](https://github.com/vanadium/go.lib/actions/workflows/lint-govuln.yml/badge.svg)
![CodeQL](https://github.com/vanadium/go.lib/actions/workflows/codeql.yml/badge.svg)

This repository contains general purpose libraries created by and used by the
Expand Down

0 comments on commit f417c62

Please sign in to comment.