Skip to content

Take two: Make local/docker implementation platform-aware #941

Take two: Make local/docker implementation platform-aware

Take two: Make local/docker implementation platform-aware #941

Workflow file for this run

name: test

Check failure on line 1 in .github/workflows/test.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yaml

Invalid workflow file

(Line: 33, Col: 16): Unexpected value '127.0.0.1:2376:2376'
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-and-build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Test
run: make test
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
test-and-build-linux-dind:
runs-on: ubuntu-latest
services:
docker:
image: docker:dind
options: --privileged
command: dockerd --host=tcp://0.0.0.0:2376 --tls=false
ports: 127.0.0.1:2376:2376
steps:
- uses: actions/checkout@v4
- name: Set up go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Test
run: make test
env:
DOCKER_HOST: "tcp://127.0.0.1:2376"
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
test-and-build-windows:
runs-on: windows-2022
steps:
- name: Set git to use LF and symlinks
run: |
git config --global core.autocrlf false
git config --global core.eol lf
git config --global core.symlinks true
- uses: actions/checkout@v4
- name: Set up go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Test
run: make test
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}