Skip to content

Commit

Permalink
chore(deps): update github actions dependencies and add dependabot co…
Browse files Browse the repository at this point in the history
…nfig
  • Loading branch information
lukasmalkmus committed Oct 17, 2023
1 parent cda4dd1 commit dd60cf6
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 37 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: gomod
directory: /
schedule:
interval: daily
ignore:
- dependency-name: "*"
update-types:
- version-update:semver-minor
- version-update:semver-major
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
16 changes: 15 additions & 1 deletion .github/workflows/dependent_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@ on:
types:
- opened
- edited
- closed
- reopened
pull_request_target:
types:
- opened
- edited
- closed
- reopened
- synchronize
merge_group:
types:
- checks_requested
schedule:
- cron: "0 0 * * *"

Expand All @@ -22,9 +27,18 @@ jobs:
if: github.repository_owner == 'axiomhq'
steps:
- uses: z0al/dependent-issues@v1
if: github.actor != 'dependabot[bot]'
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_READ_TOKEN: ${{ secrets.AXIOM_AUTOMATION_TOKEN }}
with:
label: dependent
keywords: depends on, blocked by, needs
keywords: depends on, blocked by, needs, requires
- uses: LouisBrunner/[email protected]
if: github.actor == 'dependabot[bot]'
with:
token: ${{ github.token }}
name: Dependent Issues
conclusion: success
output: |
{"summary":"Not checking for dependent issues or PRs on Dependabot PRs."}
29 changes: 13 additions & 16 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ jobs:
name: Codegen Diff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
check-latest: true
cache: true
go-version-file: go.mod
- run: make generate man
- run: git diff --exit-code
Expand All @@ -24,23 +22,24 @@ jobs:
needs: gen-diff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
check-latest: true
go-version-file: go.mod
cache: false
- run: echo "GOLANGCI_LINT_VERSION=$(go list -m -f '{{.Version}}' github.com/golangci/golangci-lint)" >> $GITHUB_ENV
- uses: golangci/golangci-lint-action@v3
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}

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

Expand All @@ -49,13 +48,11 @@ jobs:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
check-latest: true
cache: true
go-version-file: go.mod
- uses: goreleaser/goreleaser-action@v4
with:
Expand Down Expand Up @@ -93,7 +90,7 @@ jobs:
AXIOM_ORG_ID: ${{ secrets.TESTING_DEV_ORG_ID }}
AXIOM_DATASET: cli-test-${{ github.run_id }}-${{ matrix.goos }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- name: Test (Unix)
if: matrix.goos == 'darwin' || matrix.goos == 'linux'
Expand Down
31 changes: 14 additions & 17 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ jobs:
name: Codegen Diff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
check-latest: true
cache: true
go-version-file: go.mod
- run: make generate man
- run: git diff --exit-code
Expand All @@ -24,12 +22,15 @@ jobs:
needs: gen-diff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
check-latest: true
go-version-file: go.mod
go-version: ${{ matrix.go }}
cache: false
- run: echo "GOLANGCI_LINT_VERSION=$(go list -m -f '{{.Version}}' github.com/golangci/golangci-lint)" >> $GITHUB_ENV
- uses: golangci/golangci-lint-action@v3
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}

test:
name: Test
Expand All @@ -42,11 +43,9 @@ jobs:
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
check-latest: true
cache: true
go-version-file: go.mod
- run: make test

Expand All @@ -55,13 +54,11 @@ jobs:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
check-latest: true
cache: true
go-version-file: go.mod
- uses: goreleaser/goreleaser-action@v4
with:
Expand Down Expand Up @@ -98,7 +95,7 @@ jobs:
AXIOM_ORG_ID: ${{ secrets.TESTING_DEV_ORG_ID }}
AXIOM_DATASET: cli-test-${{ github.run_id }}-${{ matrix.goos }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- name: Test (Unix)
if: matrix.goos == 'darwin' || matrix.goos == 'linux'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
check-latest: true
cache: true
go-version-file: go.mod
- uses: docker/login-action@v1
- uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/login-action@v1
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down

0 comments on commit dd60cf6

Please sign in to comment.