refresh all test certificates and fix incorrect handling of x509 intermediary certs in sectestdatga #103
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: linux | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.19.x, 1.22.x] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
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@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.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@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.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 ./... |