Skip to content

CA file

CA file #665

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: Build Docker image
run: make update-devel-image
- name: Generate certificates
run: cd e2e/certs && ./gen.sh
- name: Run e2e test
run: make -C e2e run-e2e
- name: Dump Logs
if: failure()
run: make -C e2e dump-logs