Skip to content

implement Exception.Unwrap method #1195

implement Exception.Unwrap method

implement Exception.Unwrap method #1195

Workflow file for this run

name: e2e
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
go:
- "1.19"
- "1.20"
clickhouse:
- v21.8.14.5-lts
- v22.3.11.12-lts
- v22.8.5.29-lts
- v22.8.20.11-lts
- v22.12.4.76-stable
- v23.2.2.20-stable
- v23.3.8.21-lts
- v23.4.6.25-stable
- v23.6.2.18-stable
- v23.7.2.25-stable
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Get Go environment
id: go-env
run: |
echo "::set-output name=cache::$(go env GOCACHE)"
echo "::set-output name=modcache::$(go env GOMODCACHE)"
- name: Set up cache
uses: actions/cache@v3
with:
path: |
${{ steps.go-env.outputs.cache }}
${{ steps.go-env.outputs.modcache }}
key: e2e-${{ runner.os }}-go${{ matrix.go }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
e2e-${{ runner.os }}-go${{ matrix.go }}-
- name: Set up ClickHouse cache
uses: actions/cache@v3
with:
path: /opt/ch/clickhouse
key: ClickHouse-${{ matrix.clickhouse }}
- name: Check ClickHouse
id: "ch_exists"
uses: andstor/file-existence-action@v2
with:
files: /opt/ch/clickhouse
- name: Download ClickHouse
if: steps.ch_exists.outputs.files_exists != 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cd internal/cmd/ch-dl && go run . ${{ matrix.clickhouse }}
- name: Run tests
env:
CH_BIN: "/opt/ch/clickhouse"
CH_E2E: "TRUE"
run: go test -v ./...