Skip to content

Added GORM for database and DiscordGo, simple bot connects and does n… #9

Added GORM for database and DiscordGo, simple bot connects and does n…

Added GORM for database and DiscordGo, simple bot connects and does n… #9

Workflow file for this run

name: Lint Go Project
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
lint:
name: Run Go Lint
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: '1.23'
cache: false
# Cache Go modules
- name: Cache Go Modules
uses: actions/cache@v3
with:
path: /go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
# Install golangci-lint
- name: Install golangci-lint
run: |
go install github.com/golangci/golangci-lint/cmd/[email protected]
# Run make lint
- name: Run Linting
run: make lint