Skip to content

Bump golang.org/x/net from 0.0.0-20220127200216-cd36cc0744dd to 0.17.0 in /e2e #15

Bump golang.org/x/net from 0.0.0-20220127200216-cd36cc0744dd to 0.17.0 in /e2e

Bump golang.org/x/net from 0.0.0-20220127200216-cd36cc0744dd to 0.17.0 in /e2e #15

Workflow file for this run

name: Test
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go 1.18
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Cache Go modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-build-
- name: Build E2E Go binary
run: |
cd ./e2e
go build -ldflags "-s -w" -o bin/conformance .
env:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 0
- name: Run golangci-lint
# You may pin to the exact commit or the version.
# uses: golangci/golangci-lint-action@537aa1903e5d359d0b27dbc19ddd22c5087f3fbc
uses: golangci/golangci-lint-action@v3.2.0
with:
# the token is used for fetching patch of a pull request to show only new issues
github-token: ${{ github.token }}
# if set to true and the action runs on a pull request - the action outputs only newly found issues
only-new-issues: true
- name: Test
run: go test -race ./...
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: ./e2e
push: true
tags: ghcr.io/castai/k8s-client-go/conformance:${{ github.sha }}
- name: Create k8s cluster
uses: helm/kind-action@v1.3.0
- name: Run tests
run: |
cd ./e2e
IMG=ghcr.io/castai/k8s-client-go/conformance:${{ github.sha }} ./run.sh