fix remote buildkit error: [415: Unsupported Media Type] #1285
Workflow file for this run
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: Unit test | |
on: | |
release: | |
types: [created] | |
pull_request: | |
branches: | |
- main | |
- v6 | |
paths: | |
- "**.go" | |
- "!e2e/**" # exclude files from e2e tests | |
- ".github/workflows/unit-tests.yaml" | |
env: | |
GO111MODULE: on | |
GOFLAGS: -mod=vendor | |
jobs: | |
test-unit: | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
name: unit-test-${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22" | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v1 | |
- name: Test | |
run: ./hack/coverage.bash | |
test-unit-windows: | |
runs-on: windows-latest | |
name: unit-test-windows-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22" | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v1 | |
- name: Test | |
run: ./hack/coverage.bash | |
shell: bash |