Skip to content

chore(di): bad type #130

chore(di): bad type

chore(di): bad type #130

Workflow file for this run

name: Test and Checks
on:
push:
branches: [ master ]
permissions:
contents: read
pull-requests: write
jobs:
test:
name: Test & coverage
runs-on: ubuntu-latest
steps:
- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Check out code
uses: actions/checkout@v4
- name: Run unit tests with coverage.
run: |
export TELEBOT_SECRET=${{ secrets.TELEBOT_SECRET }}
export CHAT_ID=${{ secrets.CHAT_ID }}
export USER_ID=${{ secrets.USER_ID }}
export GOPATH=$(go env GOPATH)
go clean -modcache
go mod tidy
make junit
- name: Test Summary
uses: test-summary/action@v1
if: always()
with:
paths: |
./resources/cover/report.xml
- name: Upload Coverage report to CodeCov
uses: codecov/codecov-action@v3
if: always()
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./resources/cover/cover.out