github.com/dgraph-io/ristretto@v0.1.2-0.20240116140435-c67e07994f91/.github/workflows/ci-ristretto-tests.yml (about)

     1  name: ci-ristretto-tests
     2  on:
     3    push:
     4      branches:
     5        - main
     6    pull_request:
     7      branches:
     8        - main
     9    schedule:
    10      - cron: "0 0 * * *"
    11  jobs:
    12    ristretto-tests:
    13      runs-on: ubuntu-20.04
    14      steps:
    15        - uses: actions/checkout@v4
    16        - name: Get Go Version
    17          run: |
    18            #!/bin/bash
    19            GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
    20            echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
    21        - name: Setup Go
    22          uses: actions/setup-go@v5
    23          with:
    24            go-version: ${{ env.GOVERSION }}
    25        - name: Run Unit Tests
    26          run: go test -timeout=20m -race -covermode atomic -coverprofile=covprofile ./...
    27        - name: Save coverage profile
    28          uses: actions/upload-artifact@v3
    29          with:
    30            name: covprofile
    31            path: ./covprofile