add Voice Channel Connection (#71) #86
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: "Shard Manager" | ||
on: | ||
push: | ||
branches: | ||
- v10 | ||
paths: | ||
- "shard/**" | ||
pull_request: | ||
branches: | ||
- v10 | ||
paths: | ||
- "shard/**" | ||
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: ./shard/go.mod | ||
- name: Run golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: v1.64.5 | ||
args: ./shard/... | ||
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: ./shard/go.mod | ||
- name: Run Integration Tests | ||
env: | ||
TOKEN: ${{ secrets.TOKEN }} | ||
APPID: ${{ secrets.APPID }} | ||
COVERAGE_TEST_TOKEN: ${{ secrets.COVERAGE_TEST_TOKEN }} | ||
COVERAGE_TEST_GUILD: ${{ secrets.COVERAGE_TEST_GUILD }} | ||
run: go test ./shard/tests/integration -race |