Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

chore: disable renovate #128

chore: disable renovate

chore: disable renovate #128

Workflow file for this run

name: code coverage
on:
push:
branches:
- develop
- master
- main
jobs:
integration-tests:
name: Integration tests & code coverage
runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
go: ['1.19']
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Get dependencies
run: go mod download
- name: Integration tests
env:
DISGORD_TOKEN_INTEGRATION_TEST: ${{ secrets.DISGORD_TOKEN_INTEGRATION_TEST }}
TEST_GUILD_ADMIN_ID: ${{ secrets.TEST_GUILD_ADMIN_ID }}
TEST_GUILD_ADMIN_TEXT_GENERAL: ${{ secrets.TEST_GUILD_ADMIN_TEXT_GENERAL }}
TEST_GUILD_TYPICAL_ID: ${{ secrets.TEST_GUILD_TYPICAL_ID }}
TEST_GUILD_TYPICAL_TEXT_GENERAL: ${{ secrets.TEST_GUILD_TYPICAL_TEXT_GENERAL }}
TEST_GUILD_TYPICAL_VOICE_1: ${{ secrets.TEST_GUILD_TYPICAL_VOICE_1 }}
TEST_GUILD_TYPICAL_VOICE_2: ${{ secrets.TEST_GUILD_TYPICAL_VOICE_2 }}
TEST_GUILD_TYPICAL_VOICE_GENERAL: ${{ secrets.TEST_GUILD_TYPICAL_VOICE_GENERAL }}
run: go test -v -race -tags=integration -coverprofile=coverage-integration.txt -covermode=atomic ./...
- name: Codecov
run: bash <(curl -s https://codecov.io/bash) -t ${{secrets.CODECOV_TOKEN}} -c -F integration -f "./coverage-integration.txt" -Z
unit-tests:
name: unit tests & code coverage
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
go: ['1.19']
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
id: go
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get dependencies
run: go mod download
- name: unit tests
run: go test -short -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Codecov
run: bash <(curl -s https://codecov.io/bash) -t ${{secrets.CODECOV_TOKEN}} -c -F unit -f "./coverage.txt" -Z