Skip to content

Commit

Permalink
chore(deps): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmalkmus committed Feb 23, 2023
1 parent e452936 commit ab29449
Show file tree
Hide file tree
Showing 17 changed files with 4,632 additions and 823 deletions.
582 changes: 582 additions & 0 deletions .github/images/banner-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
389 changes: 389 additions & 0 deletions .github/images/banner-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions .github/workflows/dependent_pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Dependent PRs

on:
issues:
types:
- opened
- edited
- reopened
pull_request_target:
types:
- opened
- edited
- reopened
- synchronize
schedule:
- cron: "0 0 * * *"

jobs:
check:
name: Check
runs-on: ubuntu-latest
if: github.repository_owner == 'axiomhq'
steps:
- uses: z0al/dependent-issues@v1
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_READ_TOKEN: ${{ secrets.AXIOM_AUTOMATION_TOKEN }}
with:
label: dependent
keywords: depends on, blocked by, needs
48 changes: 48 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: PR

on:
pull_request:
branches:
- main

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
check-latest: true
go-version-file: go.mod
- uses: golangci/golangci-lint-action@v3

test:
name: Test
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
check-latest: true
cache: true
go-version-file: go.mod
- run: make test

build:
name: Build
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
check-latest: true
cache: true
go-version-file: go.mod
- uses: goreleaser/goreleaser-action@v4
with:
args: build --snapshot
64 changes: 0 additions & 64 deletions .github/workflows/pr.yml

This file was deleted.

54 changes: 54 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Push

on:
push:
branches:
- main

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
check-latest: true
go-version-file: go.mod
- uses: golangci/golangci-lint-action@v3

test:
name: Test
needs: lint
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
check-latest: true
cache: true
go-version-file: go.mod
- run: make test

build:
name: Build
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
check-latest: true
cache: true
go-version-file: go.mod
- uses: goreleaser/goreleaser-action@v4
with:
args: build --snapshot
64 changes: 0 additions & 64 deletions .github/workflows/push.yml

This file was deleted.

28 changes: 13 additions & 15 deletions .github/workflows/release.yml → .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,32 @@ on:
tags:
- "v*"

env:
GOVERSION: "1.17"

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GOVERSION }}
- uses: actions/cache@v2
- uses: actions/setup-go@v3
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
check-latest: true
cache: true
go-version-file: go.mod
- uses: docker/login-action@v1
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: goreleaser/goreleaser-action@v2
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- uses: goreleaser/goreleaser-action@v4
with:
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
HOMEBREW_TOKEN: ${{ secrets.HOMEBREW_TOKEN }}
8 changes: 5 additions & 3 deletions .golangci.yml → .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ linters:
disable-all: true
enable:
- bodyclose
- deadcode
- dogsled
- dupl
- errcheck
Expand All @@ -28,13 +27,11 @@ linters:
- prealloc
- revive
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace

linters-settings:
Expand All @@ -44,3 +41,8 @@ linters-settings:
local-prefixes: github.com/axiomhq/axiom-honeycomb-proxy
govet:
check-shadowing: true
nolintlint:
allow-unused: false
allow-leading-space: false
require-explanation: true
require-specific: true
Loading

0 comments on commit ab29449

Please sign in to comment.