github.com/octohelm/storage@v0.0.0-20240516030302-1ac2cc1ea347/.github/workflows/test.yaml (about)

     1  name: test
     2  on:
     3    push:
     4      branches:
     5        - main
     6    pull_request:
     7  
     8  jobs:
     9    test:
    10      runs-on: ubuntu-latest
    11      services:
    12        postgres:
    13          image: docker.io/library/postgres:16-alpine
    14          env:
    15            POSTGRES_PASSWORD: ""
    16            POSTGRES_HOST_AUTH_METHOD: trust
    17          ports:
    18            - 5432:5432
    19  
    20      steps:
    21        - uses: actions/checkout@v3
    22        - uses: actions/setup-go@v5
    23          with:
    24            go-version: '^1.22'
    25  
    26        - run: make test.race
    27          env:
    28            GOEXPERIMENT: "rangefunc"