You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by ke...@apache.org on 2026/10/20 00:08:54 UTC
(terraform-provider-iceberg) branch main updated: ci: run Go matrix jobs on their declared OS (#142)
This is an automated email from the ASF dual-hosted git repository.
kevinjqliu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/terraform-provider-iceberg.git
The following commit(s) were added to refs/heads/main by this push:
new 77e3a84 ci: run Go matrix jobs on their declared OS (#142)
77e3a84 is described below
commit 77e3a84c0630df9c63cc9fd1005e76d2d9d4c20e
Author: Matt Topol <zo...@gmail.com>
AuthorDate: Tue Oct 20 01:08:48 2026 +0100
ci: run Go matrix jobs on their declared OS (#142)
---
.gitattributes | 21 +++++++++++++++++++++
.github/workflows/go-ci.yml | 7 +++++--
2 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..c2957a6
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Keep LF line endings on every platform. Windows runners check out with
+# core.autocrlf=true, which turns LF into CRLF and makes gofmt reject every
+# Go file.
+* text=auto eol=lf
diff --git a/.github/workflows/go-ci.yml b/.github/workflows/go-ci.yml
index bd3672b..d9b6e6f 100644
--- a/.github/workflows/go-ci.yml
+++ b/.github/workflows/go-ci.yml
@@ -35,7 +35,7 @@ permissions:
jobs:
lint-and-test:
name: ${{ matrix.os }} go${{ matrix.go }}
- runs-on: ubuntu-latest
+ runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
@@ -64,8 +64,11 @@ jobs:
uses: hashicorp/setup-terraform@dfe3c3f87815947d99a8997f908cb6525fc44e9e # v4.0.1
- name: Run tests
run: go test -v ./...
+ # GitHub-hosted macOS and Windows runners cannot run the Linux containers
+ # in dev/docker-compose.yml, so integration tests only run on Linux.
- name: Run integration tests
+ if: ${{ runner.os == 'Linux' }}
run: make test-integration
- name: Show debug logs
- if: ${{ failure() }}
+ if: ${{ failure() && runner.os == 'Linux' }}
run: docker compose -f dev/docker-compose.yml logs