From 6cd07c59436d895b598844039bfe2d200a1f7cd2 Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Fri, 1 Nov 2024 19:22:36 +0200 Subject: [PATCH] Port workflow changes from v0.11 --- .github/workflows/build.yaml | 24 ++++++++++++++++-------- .github/workflows/integration_tests.yaml | 19 ++++++++++++++----- 2 files changed, 30 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6326a713c..f1386ff50 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,12 +1,21 @@ -name: Build & Unit Tests +name: build & test permissions: {} on: - # push: - # branches: [1.0] + push: + branches: + - 1.0 + paths-ignore: + - 'docs/**' + - README.md pull_request: - branches: [1.0] + branches: + - 1.0 + paths-ignore: + - 'docs/**' + - README.md + workflow_dispatch: jobs: # check-if-duplicate-action: @@ -30,18 +39,17 @@ jobs: steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: "1.21.3" + go-version: "1.23.x" - name: Go Format run: gofmt -s -w . && git diff --exit-code - name: Go Vet - continue-on-error: true # option will soon be removed run: go vet ./... - name: Go Tidy diff --git a/.github/workflows/integration_tests.yaml b/.github/workflows/integration_tests.yaml index c50d2de52..f407fc5f4 100644 --- a/.github/workflows/integration_tests.yaml +++ b/.github/workflows/integration_tests.yaml @@ -1,10 +1,19 @@ -name: Integration Tests +name: integration on: - # push: - # branches: [1.0] + push: + branches: + - 1.0 + paths-ignore: + - 'docs/**' + - README.md pull_request: - branches: [1.0] + branches: + - 1.0 + paths-ignore: + - 'docs/**' + - README.md + workflow_dispatch: jobs: # check-if-duplicate-action: @@ -32,7 +41,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.23.0" + go-version: "1.23.x" - name: Set up Python uses: actions/setup-python@v5