Skip to content

Refactor github workflows #1

Refactor github workflows

Refactor github workflows #1

name: build-and-test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build-and-test:
runs-on: ubuntu-latest
environment: building-and-testing
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
- name: Build
run: go build -v ./...
- name: Test
run: TESTING_CLIENT_TOKEN=${{ secrets.TESTING_CLIENT_TOKEN }} TESTING_CLIENT_ID=${{ secrets.TESTING_CLIENT_ID }} TESTING_GUILD_ID=${{ secrets.TESTING_GUILD_ID }} go test -v ./...