Skip to content

CA file

CA file #678

Workflow file for this run

# Copyright 2021 The forwarder Authors. All rights reserved.
# Use of this source code is governed by a MIT
# license that can be found in the LICENSE file.
---
name: Go
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set version env variables
run: |
cat .version >> $GITHUB_ENV
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "${{env.GO_VERSION}}"
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: "${{env.GOLANGCI_LINT_VERSION}}"
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set version env variables
run: |
cat .version >> $GITHUB_ENV
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "${{env.GO_VERSION}}"
- name: Run unit test
run: make test coverage
e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set version env variables
run: |
cat .version >> $GITHUB_ENV
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "${{env.GO_VERSION}}"
- name: Generate certificates
run: make -C e2e/certs certs
- name: Build Docker image
run: make update-devel-image
- name: Run e2e test
run: make -C e2e run-e2e
- name: Docker Compose file
if: failure()
run: cat e2e/docker-compose.yaml
- name: Docker Logs
if: failure()
run: make -C e2e dump-logs