Merge pull request #138 from Kump3r/master #159
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: 'Discord' | |
on: | |
push: | |
branches: [master] | |
jobs: | |
test: | |
name: 'Run Tests' | |
runs-on: ubuntu-latest | |
environment: production | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.16 | |
- name: Run Tests | |
run: go test ./cmd/harmonize/... | |
env: | |
GITHUB_TOKEN: ${{ secrets.ORG_ADMIN_GITHUB_TOKEN }} | |
discord: | |
needs: test | |
name: 'Discord' | |
runs-on: ubuntu-latest | |
environment: production | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.16 | |
- name: Harmonize Discord | |
run: go run ./cmd/harmonize | |
env: | |
DISCORD_TOKEN: ${{ secrets.DISCORD_ADMIN_BOT_TOKEN }} |