Skip to content

add missed indentation for docker-build #6

add missed indentation for docker-build

add missed indentation for docker-build #6

Workflow file for this run

name: Automatic Pull Request test
on:
pull_request:
branches:
- "main"
permissions:
contents: read
jobs:
unit-test:
name: Unit test
runs-on: ubuntu-latest
steps:
- name: Checkout latest commit in the PR
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: Set up tools
run: |
go install golang.org/x/lint/golint@latest
go install golang.org/x/tools/cmd/goimports@latest
- name: Run code checks
run: |
make check-format
make vet
- name: Build
run: make build
- name: Unit test
run: make test
- name: Upload code coverage
uses: codecov/codecov-action@v3
docker-build:
name: Build Docker images
runs-on: ubuntu-latest
steps:
- name: Checkout latest commit in the PR
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: Build Network Policy Controller images
run: make docker-buildx