Skip to content

SNOW-1634712 Support for toml file connection configuration #4137

SNOW-1634712 Support for toml file connection configuration

SNOW-1634712 Support for toml file connection configuration #4137

Workflow file for this run

name: Build and Test
on:
push:
braches:
- master
tags:
- v*
pull_request:
branches:
- master
- SNOW-*
schedule:
- cron: '7 3 * * *'
workflow_dispatch:
inputs:
goTestParams:
default:
description: "Parameters passed to go test"
concurrency:
# older builds for the same pull request numer or branch should be cancelled
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
name: Check linter
steps:
- uses: actions/checkout@v1
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.20'
- name: Format, Lint
shell: bash
run: ./ci/build.sh
build-test-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
cloud: [ 'AWS', 'AZURE', 'GCP' ]
go: [ '1.20', '1.21', '1.22' ]
name: ${{ matrix.cloud }} Go ${{ matrix.go }} on Ubuntu
steps:
- uses: actions/checkout@v1
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Test
shell: bash
env:
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
CLOUD_PROVIDER: ${{ matrix.cloud }}
GORACE: history_size=7
GO_TEST_PARAMS: ${{ inputs.goTestParams }}
run: ./ci/test.sh
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODE_COV_UPLOAD_TOKEN }}
build-test-mac:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
cloud: [ 'AWS', 'AZURE', 'GCP' ]
go: [ '1.20', '1.21', '1.22' ]
name: ${{ matrix.cloud }} Go ${{ matrix.go }} on Mac
steps:
- uses: actions/checkout@v1
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Test
shell: bash
env:
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
CLOUD_PROVIDER: ${{ matrix.cloud }}
GO_TEST_PARAMS: ${{ inputs.goTestParams }}
run: ./ci/test.sh
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODE_COV_UPLOAD_TOKEN }}
build-test-windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
cloud: [ 'AWS', 'AZURE', 'GCP' ]
go: [ '1.20', '1.21', '1.22' ]
name: ${{ matrix.cloud }} Go ${{ matrix.go }} on Windows
steps:
- uses: actions/checkout@v1
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- uses: actions/setup-python@v1
with:
python-version: '3.x'
architecture: 'x64'
- name: Test
shell: cmd
env:
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
CLOUD_PROVIDER: ${{ matrix.cloud }}
GO_TEST_PARAMS: ${{ inputs.goTestParams }}
run: ci\\test.bat
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODE_COV_UPLOAD_TOKEN }}