Skip to content

Commit

Permalink
prerelease commit
Browse files Browse the repository at this point in the history
  • Loading branch information
switchupcb committed Mar 1, 2025
1 parent 2144ff6 commit 8138576
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 1 deletion.
74 changes: 74 additions & 0 deletions .github/workflows/disgoform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: "Disgoform"

on:
push:
branches:
- main
paths:
- "disgoform.go"
- "go.mod"
- "go.sum"

pull_request:
types:
- opened
- synchronize
branches:
- v10
paths:
- "disgoform.go"
- "go.mod"
- "go.sum"

jobs:
sca-lint:
name: Static Code Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout repository code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.64.5

test-unit:
needs: sca-lint
name: Unit Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
steps:
- name: Checkout repository code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Run Unit Tests
run: go test ./tests/unit_test.go

test-integration:
needs: test-unit
name: Integration Tests
environment: testing
runs-on: ubuntu-latest
steps:
- name: Checkout repository code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Run Integration Tests
env:
TOKEN: ${{ secrets.TOKEN }}
APPID: ${{ secrets.APPID }}
GUILDID: ${{ secrets.GUILDID }}
run: go test ./tests/integration_test.go
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Disgoform is a tool used to manage the application commands of your Discord Bot.
You run `disgoform` as a program which imports a Go module to synchronize a Discord Bot's declared application commands with the Discord API.

```
go get github.com/switchupcb/disgoform@v1.0.0
go get github.com/switchupcb/disgoform@v0.10.0
```

## Table of Contents
Expand Down

0 comments on commit 8138576

Please sign in to comment.