Skip to content

fix: plugin logging #470

fix: plugin logging

fix: plugin logging #470

Workflow file for this run

name: build
# Cancel concurrent jobs for the same ref
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
# Running CI on push to main and open PRs
on:
push:
branches:
- main
tags:
- '*'
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
# Checkout the code
- uses: actions/checkout@v4
# setup Golang based on the go.mod version
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
# run go ci lint to catch standard go issues
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: --issues-exit-code=0
skip-pkg-cache: true
skip-build-cache: true
version: latest
# Make sure the go mod is tidy
- run: go mod tidy && git diff --exit-code
test:
name: test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
# Checkout the code
- uses: actions/checkout@v4
# Setup Golang based on the go.mod version
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
# Run the tests
- run: go test ./... -v
build:
name: build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
# Checkout the code
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
recinq/aether
# generate Docker tags based on the following events/attributes
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}