Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

chore(deps): bump golang.org/x/net from 0.10.0 to 0.17.0 #152

chore(deps): bump golang.org/x/net from 0.10.0 to 0.17.0

chore(deps): bump golang.org/x/net from 0.10.0 to 0.17.0 #152

Workflow file for this run

name: test
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
run:
timeout-minutes: 30
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: true
matrix:
flags: [""]
arch:
- amd64
runner:
- ubuntu-latest
go:
- "1.20.x"
include:
- arch: amd64
runner: ubuntu-latest
flags: "-race"
go: "1.20.x"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
cache: false
- name: Get Go environment
id: go-env
shell: bash
run: |
echo "cache=$(go env GOCACHE)" >> $GITHUB_ENV
echo "modcache=$(go env GOMODCACHE)" >> $GITHUB_ENV
# Build cache key prefix, using runner OS and arch.
- name: Compute cache prefix
id: cache-prefix
shell: bash
env:
RUNNER_PREFIX: ${{ runner.os }}-${{ runner.arch }}-go
ARCH_PREFIX: ${{ matrix.arch != 'amd64' && format('-{0}', matrix.arch) || '' }}
RACE_PREFIX: ${{ contains(matrix.flags, '-race') && '-race' || '' }}
run:
echo "cache_prefix=$RUNNER_PREFIX$ARCH_PREFIX$RACE_PREFIX" >> $GITHUB_ENV
- name: Set up cache
uses: actions/cache@v3
with:
path: |
${{ env.cache }}
${{ env.modcache }}
key: ${{ env.cache_prefix }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ env.cache_prefix }}-
- name: Run tests
env:
GOARCH: ${{ matrix.arch }}
GOFLAGS: ${{ matrix.flags }}
run: go test --timeout 30m ./...