Skip to content

chore(deps): bump actions/checkout from 3 to 4 #149

chore(deps): bump actions/checkout from 3 to 4

chore(deps): bump actions/checkout from 3 to 4 #149

Workflow file for this run

name: CI
on:
push:
branches:
- 'master'
pull_request:
permissions:
contents: write
pull-requests: write
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4.1.0
with:
go-version: 1.18
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.46
- name: Build
run: go build
- name: Test
run: make test
dependabot_automerge:
name: Dependabot auto-merge
runs-on: ubuntu-latest
needs: [ test ]
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.6.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: ${{ steps.metadata.outputs.dependency-names == 'actions/checkout' || steps.metadata.outputs.dependency-names == 'actions/setup-go' || steps.metadata.outputs.dependency-names == 'golangci/golangci-lint-action' || steps.metadata.outputs.dependency-names == 'dependabot/fetch-metadata' || steps.metadata.outputs.dependency-names == 'goreleaser/goreleaser-action' }}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}