Skip to content

Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 in the github-actions-all group #6

Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 in the github-actions-all group

Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 in the github-actions-all group #6

Workflow file for this run

name: CI
on:
# By default, a workflow only runs when a pull_request event's activity type is opened, synchronize, or reopened.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
# So we add default event types and ready_for_review type here.
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: write
jobs:
test:
if: github.event.pull_request.draft == false
name: Run test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version-file: go.mod
- run: make test
lint:
if: github.event.pull_request.draft == false
name: Run lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: golangci-lint
uses: reviewdog/action-golangci-lint@dd3fda91790ca90e75049e5c767509dc0ec7d99b # v2.7.0
with:
github_token: ${{ github.token }}
level: error
fail_on_error: true
reporter: github-pr-review
tool_name: golangci-lint
go_version_file: go.mod