Skip to content

feat: parse discord errors response into readable format #3059

feat: parse discord errors response into readable format

feat: parse discord errors response into readable format #3059

Workflow file for this run

name: Go
on:
pull_request:
paths:
- '**/*.go'
- '**/go.mod'
- '**/go.sum'
- '.github/workflows/go.yml'
push:
paths:
- '**/*.go'
- '**/go.mod'
- '**/go.sum'
- '.github/workflows/go.yml'
# The if of each job prevents running the workflow if it's from a pull request from the directory the pull request is targeted towards
# as it will already run on 'push'
jobs:
build:
if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.24
- uses: actions/checkout@v4
- name: go build
run: go build -v ./...
test:
if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.24
- uses: actions/checkout@v4
- name: go test
run: go test -v ./...
golangci:
if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.24
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest