From 2a455fb2d9f3f2cb163e68e05ac93afd6346fb73 Mon Sep 17 00:00:00 2001 From: Christian Tacke <58549698+ChristianTackeGSI@users.noreply.github.com> Date: Wed, 30 Oct 2024 12:02:25 +0100 Subject: [PATCH] ci: Add first simple CI Just try to build with the minimum version from go.mod, and the current "stable" version. --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..08ef159 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +--- +# SPDX-FileCopyrightText: 2024 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH +# SPDX-License-Identifier: CC0-1.0 +name: "Simple Build Test" + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + go: [ '', 'stable' ] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go }} + go-version-file: 'go.mod' + - name: Build it + run: | + go version + echo "" + go build -v