From 6c8b3757aacef4e45d6fccf818a4218add03eed6 Mon Sep 17 00:00:00 2001 From: JanHoefelmeyer <107021473+JanHoefelmeyer@users.noreply.github.com> Date: Thu, 7 Dec 2023 16:12:26 +0100 Subject: [PATCH] Older version (#513) * Add go_legacy.yml to check for compatibility with older go versions * Remove tests already done in go.yml * fix: Update actions, use stable/oldstable in actions --------- Co-authored-by: JanHoefelmeyer --- .github/workflows/go.yml | 6 +++--- .github/workflows/go_legacy.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/go_legacy.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 1f277f95..95ee8c75 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -12,12 +12,12 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: 1.21.0 + go-version: 'stable' - name: Build run: go build -v ./cmd/... diff --git a/.github/workflows/go_legacy.yml b/.github/workflows/go_legacy.yml new file mode 100644 index 00000000..a86368dc --- /dev/null +++ b/.github/workflows/go_legacy.yml @@ -0,0 +1,26 @@ +name: Go + +on: + push: + paths: + - "**.go" + pull_request: + paths: + - "**.go" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: 'oldstable' + + - name: Build + run: go build -v ./cmd/... + + - name: Tests + run: go test -v ./...