Add optional DataDog integration for telemetry and syslog forwarding #35
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.25" | |
| - name: Build backend | |
| working-directory: backend | |
| run: CGO_ENABLED=0 go build ./... | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| MONGODB_URI: ${{ secrets.MONGODB_URI }} | |
| DATABASE_NAME: lastsaas-test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.25" | |
| - name: Run tests with coverage | |
| working-directory: backend | |
| run: | | |
| CGO_ENABLED=0 go test -p 1 ./... \ | |
| -coverprofile=coverage.out \ | |
| -covermode=atomic \ | |
| -timeout=600s | |
| - name: Upload coverage to Codecov | |
| if: always() | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: backend/coverage.out | |
| flags: backend | |
| token: ${{ secrets.CODECOV_TOKEN }} |