Use the urlparams to generate the dsn url #857
Workflow file for this run
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: Go | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22' | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version | |
version: latest | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install litmus test | |
run: sudo apt-get install -y litmus | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22' | |
- name: Run tests | |
run: go test -count=1 -race -timeout 30s -coverprofile=coverage.out -covermode=atomic ./... | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
generate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22' | |
- name: Install mockery | |
run: go install github.com/vektra/mockery/v2@v2.42.0 | |
- name: Run go generate | |
run: go generate ./... | |
- name: Check if there are changes | |
id: changes | |
uses: UnicornGlobal/has-changes-action@v1.0.11 | |
- name: Process changes | |
if: steps.changes.outputs.changed == 1 | |
run: | | |
echo "Changes exist" | |
exit 1 | |
deadcode: | |
runs-on: ubuntu-latest | |
name: Run deadcode | |
steps: | |
- id: deadcode | |
uses: lost-coders/deadcode-action@v0.1.0 | |
with: | |
flags: "-test" | |
go-version: "1.22" | |
go-package: "./..." |