2021-11-01 16:42:48 -04:00
|
|
|
name: Functional Tests
|
2020-04-29 12:17:32 -04:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2021-11-30 12:22:17 -05:00
|
|
|
- master
|
2020-04-29 12:17:32 -04:00
|
|
|
|
2021-11-07 04:22:59 -05:00
|
|
|
# This ensures that previous jobs for the PR are canceled when the PR is
|
2021-11-01 16:42:48 -04:00
|
|
|
# updated.
|
2021-11-23 15:02:16 -05:00
|
|
|
concurrency:
|
2021-11-01 16:42:48 -04:00
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-04-11 05:45:59 -04:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-04-29 12:17:32 -04:00
|
|
|
jobs:
|
|
|
|
build:
|
2021-12-21 13:08:26 -05:00
|
|
|
name: Go ${{ matrix.go-version }} on ${{ matrix.os }} - healing
|
2020-04-29 12:17:32 -04:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-07-25 18:27:20 -04:00
|
|
|
go-version: [1.18.x]
|
2021-06-18 15:08:33 -04:00
|
|
|
os: [ubuntu-latest]
|
2020-04-29 12:17:32 -04:00
|
|
|
steps:
|
2020-05-15 18:54:39 -04:00
|
|
|
- uses: actions/checkout@v2
|
2022-03-25 11:56:04 -04:00
|
|
|
- uses: actions/setup-go@v3
|
2020-04-29 12:17:32 -04:00
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
2022-03-25 11:56:04 -04:00
|
|
|
check-latest: true
|
2021-11-19 19:18:23 -05:00
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cache/go-build
|
|
|
|
~/go/pkg/mod
|
|
|
|
key: ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-${{ matrix.go-version }}-go-
|
2020-05-15 18:54:39 -04:00
|
|
|
- name: Build on ${{ matrix.os }}
|
|
|
|
if: matrix.os == 'ubuntu-latest'
|
2020-04-29 12:17:32 -04:00
|
|
|
env:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
2021-05-08 18:40:29 -04:00
|
|
|
MINIO_KMS_KES_CERT_FILE: /home/runner/work/minio/minio/.github/workflows/root.cert
|
|
|
|
MINIO_KMS_KES_KEY_FILE: /home/runner/work/minio/minio/.github/workflows/root.key
|
|
|
|
MINIO_KMS_KES_ENDPOINT: "https://play.min.io:7373"
|
|
|
|
MINIO_KMS_KES_KEY_NAME: "my-minio-key"
|
|
|
|
MINIO_KMS_AUTO_ENCRYPTION: on
|
2020-04-29 12:17:32 -04:00
|
|
|
run: |
|
2020-10-01 23:24:34 -04:00
|
|
|
sudo sysctl net.ipv6.conf.all.disable_ipv6=0
|
|
|
|
sudo sysctl net.ipv6.conf.default.disable_ipv6=0
|
2020-04-29 12:17:32 -04:00
|
|
|
make verify
|