Skip to content

update dependencies, use go 1.21. (#392) #42

update dependencies, use go 1.21. (#392)

update dependencies, use go 1.21. (#392) #42

Workflow file for this run

name: linux
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
strategy:
matrix:
go-version: [1.18.x, 1.20.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Install tools
run: |
go install golang.org/x/tools/cmd/goimports@latest
- name: Test
run: |
export VDLPATH=$GITHUB_WORKSPACE
go test --race --covermode=atomic --timeout=15m ./...
cd x/ref/examples
go test --race --covermode=atomic ./...
integration-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.x
cache: true
- name: Install openssl
run: |
uname -a
sudo apt-get update -y
sudo apt-get install -y pkg-config openssl libssl-dev
- name: Test
run: |
make test-integration test-openssl-integration
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21.x
cache: true
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
- name: Vulnerabilities
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...