github.com/blend/go-sdk@v1.20220411.3/.github/workflows/continuous_integration.yml (about)

     1  ---
     2  name: "Continuous Integration"
     3  
     4  on:
     5    pull_request:
     6        branches: 
     7          - master
     8    push:
     9      branches:
    10        - master
    11  
    12  jobs:
    13  
    14    ci_full:
    15      name: "Continuous Integration"
    16      runs-on: ubuntu-latest
    17  
    18      services:
    19        postgres:
    20          image: postgres:12
    21          env:
    22            POSTGRES_USER: postgres
    23            POSTGRES_PASSWORD: unit-tests
    24            POSTGRES_DB: ci_db_test
    25          ports:
    26            - 5432:5432
    27          options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
    28  
    29      env:
    30        GOOS: "linux"
    31        GOARCH: "amd64"
    32        GO111MODULE: "on"
    33        CGO_ENABLED: "0"
    34        GHE_TOKEN: "${{ secrets.REPO_CHECKOUT_TOKEN }}"
    35        DB_HOST: "localhost"
    36        DB_PORT: "5432"
    37        DB_USER: "postgres"
    38        DB_PASSWORD: "unit-tests"
    39        DB_NAME: "ci_db_test"
    40        DB_SSLMODE: "disable"
    41  
    42      steps:
    43      - uses: actions/checkout@v2
    44  
    45      - name: Set up Go 1.16.x
    46        uses: actions/setup-go@main
    47        with:
    48          go-version: ^1.16
    49        id: go
    50  
    51      - name: CI
    52        run: make ci