2020-04-29 12:17:32 -04:00
|
|
|
name: Go
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-06-18 15:08:33 -04:00
|
|
|
name: MinIO Setup on ${{ matrix.go-version }} and ${{ matrix.os }}
|
2020-04-29 12:17:32 -04:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-08-18 21:35:22 -04:00
|
|
|
go-version: [1.16.x, 1.17.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
|
|
|
|
- uses: actions/setup-go@v2
|
2020-04-29 12:17:32 -04:00
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
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
|