Skip to content

build(deps): bump golang.org/x/crypto from 0.7.0 to 0.8.0 (#123) #331

build(deps): bump golang.org/x/crypto from 0.7.0 to 0.8.0 (#123)

build(deps): bump golang.org/x/crypto from 0.7.0 to 0.8.0 (#123) #331

Workflow file for this run

name: Tests
on:
pull_request:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
- 'website/*'
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
- 'website/*'
jobs:
# resolve-versions allows us to show resolved Go versions in job titles
# for added clarity and quick orientation in a long list of past jobs
resolve-versions:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
-
name: Resolve old stable version
id: oldstable
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # https://github.com/actions/setup-go/releases/tag/v4.0.0
with:
go-version: oldstable
-
name: Resolve stable version
id: stable
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # https://github.com/actions/setup-go/releases/tag/v4.0.0
with:
go-version: stable
outputs:
oldstable: ${{ steps.oldstable.outputs.go-version }}
stable: ${{ steps.stable.outputs.go-version }}
build:
name: build (go ${{ matrix.go_version }})
needs:
- resolve-versions
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
go_version:
- ${{ needs.resolve-versions.outputs.oldstable }}
- ${{ needs.resolve-versions.outputs.stable }}
steps:
- name: Set up Go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # https://github.com/actions/setup-go/releases/tag/v4.0.0
with:
go-version: ${{ matrix.go_version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # https://github.com/actions/checkout/releases/tag/v3.5.0
- name: Go fmt
run: |
# exit 1 if any files need go fmt
test -z $(gofmt -s -l .)
- name: Go vet
run: |
go vet ./...
- name: Build
run: |
go build -v .
test:
name: tests (${{ matrix.os }}, go ${{ matrix.go_version }})
needs:
- build
- resolve-versions
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
go_version:
- ${{ needs.resolve-versions.outputs.oldstable }}
- ${{ needs.resolve-versions.outputs.stable }}
steps:
- name: Set up Go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # https://github.com/actions/setup-go/releases/tag/v4.0.0
with:
go-version: ${{ matrix.go_version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # https://github.com/actions/checkout/releases/tag/v3.5.0
- name: Unit tests
timeout-minutes: 5
run: |
go test -v -race ./...
- name: E2E tests
timeout-minutes: 35
env:
E2E_TESTING: 1
run: |
go test -timeout=30m -v ./...