Skip to content

Merge pull request #3 from bluecatengineering/EDG-13557 #7

Merge pull request #3 from bluecatengineering/EDG-13557

Merge pull request #3 from bluecatengineering/EDG-13557 #7

Workflow file for this run

name: build
on:
push:
branches:
- main
paths-ignore:
- '*.md'
- '.github/workflows/release.yaml'
pull_request:
jobs:
build:
name: build
env:
GO_VERSION: 1.20.0
GOLANGCI_LINT_VERSION: v1.53
YAEGI_VERSION: v0.15.1
CGO_ENABLED: 0
runs-on: ubuntu-latest
steps:
# https://github.com/marketplace/actions/setup-go-environment
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v3
with:
go-version: ^${{ env.GO_VERSION }}
# https://github.com/marketplace/actions/checkout
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up GOPATH
run: go env -w GOPATH=${{ github.workspace }}/go
# https://github.com/marketplace/actions/run-golangci-lint
- name: Install golangci-lint ${{ env.GOLANGCI_LINT_VERSION }}
uses: golangci/golangci-lint-action@v3
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
args: "--help"
- name: Lint, Test, Build
run: make lint test build
- name: Install yaegi ${{ env.YAEGI_VERSION }}
run: curl -sfL https://raw.githubusercontent.com/traefik/yaegi/master/install.sh | bash -s -- -b ${{ github.workspace }}/go/bin ${{ env.YAEGI_VERSION }}
- name: Copy sources
run: make copy_src
- name: Run tests with yaegi
run: ${{ github.workspace }}/go/bin/yaegi test -v github.com/bluecatengineering/traefik-aws-plugin
env:
GOPATH: ${{ github.workspace }}/go