Added GORM for database and DiscordGo, simple bot connects and does n… #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint Go Project | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
lint: | |
name: Run Go Lint | |
runs-on: ubuntu-latest | |
container: | |
image: golang:1.23 | |
steps: | |
# Checkout the repository | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
# 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 Make | |
- name: Install Make | |
run: apt-get update && apt-get install -y make | |
# 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 |