Skip to content

Show event counts and percentage flow-through on Sankey nodes #34

Show event counts and percentage flow-through on Sankey nodes

Show event counts and percentage flow-through on Sankey nodes #34

Workflow file for this run

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 }}