Skip to content

update

update #215

Workflow file for this run

name: Testing
on:
push:
branches: [ main ]
jobs:
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
docker-compose -f ".github/compose/docker-compose.yml" up -d
- uses: actions/setup-go@v4
with:
go-version: ~1.22
- run: |
go mod tidy
go test -race -covermode atomic -coverprofile=covprofile ./...
env:
GO111MODULE: on
NAMESPACE: example
KEY: rsd68cRFeHollOHEEZOYuTB2jU4WwmMf
DATABASE_REDIS: redis://127.0.0.1:6379
- name: PUSH COVERALLS
run: |
go install github.com/mattn/goveralls@latest
goveralls -coverprofile=covprofile -service=github
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: PUSH FOSSAS
run: "curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | sudo bash"