Skip to content

Commit

Permalink
undo changes to ignored workflows, dont pin minor version
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyzli committed Jul 26, 2024
1 parent cda660b commit 4c9a072
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "~1.21.0"
go-version: "~1.22.5"
cache: false
- name: Cache Go
id: go-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: Install-WindowsFeature -name Web-Server -IncludeManagementTools
- uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.21.12"
cache: false
- name: Cache Go
id: go-mod-cache
Expand Down
37 changes: 27 additions & 10 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.21.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.21.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.21.12"
cache: false
- name: Cache Go
id: go-cache
Expand All @@ -184,7 +184,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.21.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -219,10 +219,23 @@ jobs:
run: |
make gotidy
git diff --exit-code || (echo 'go.mod/go.sum deps changes detected, please run "make gotidy" and commit the changes in this PR.' && exit 1)
- name: Gen genotelcontribcol
run: |
make genotelcontribcol
git diff -s --exit-code || (echo 'Generated code is out of date, please run "make genotelcontribcol" and commit the changes in this PR.' && exit 1)
- name: Gen genoteltestbedcol
run: |
make genoteltestbedcol
git diff -s --exit-code || (echo 'Generated code is out of date, please run "make genoteltestbedcol" and commit the changes in this PR.' && exit 1)
- name: Gen distributions
run: |
make gendistributions
git diff -s --exit-code || (echo 'Generated code is out of date, please run "make gendistributions" and commit the changes in this PR.' && exit 1)
- name: Gen CODEOWNERS
if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) && github.repository == 'open-telemetry/opentelemetry-collector-contrib'
run: |
GITHUB_TOKEN=${{ secrets.READ_ORG_AND_USER_TOKEN }} make gengithub
git diff -s --exit-code || (echo 'Generated code is out of date, please apply this diff and commit the changes in this PR.' && git diff && exit 1)
- name: CodeGen
run: |
make -j2 generate
Expand All @@ -232,11 +245,15 @@ jobs:
fi
- name: MultimodVerify
run: make multimod-verify
- name: Components dropdown in issue templates
run: |
make generate-gh-issue-templates
git diff --exit-code '.github/ISSUE_TEMPLATE' || (echo 'Dropdowns in issue templates are out of date, please run "make generate-gh-issue-templates" and commit the changes in this PR.' && exit 1)
unittest-matrix:
strategy:
fail-fast: false
matrix:
go-version: ["1.21.0"] # 1.20 is interpreted as 1.2 without quotes
go-version: ["1.22.5", "1.21.12"] # 1.20 is interpreted as 1.2 without quotes
runner: [ubuntu-latest]
group:
- receiver-0
Expand Down Expand Up @@ -352,7 +369,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.21.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -390,7 +407,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.21.12"
cache: false
- name: Cache Go
id: go-cache
Expand All @@ -416,7 +433,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.21.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -486,7 +503,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.21.12"
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -587,7 +604,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.21.12"
cache: false
- name: Mkdir bin and dist
run: |
Expand Down
22 changes: 10 additions & 12 deletions .github/workflows/build-test-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.21.0"
go-version: "1.21"
- name: Cache Go
id: go-cache
uses: actions/cache@v3
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.21.0"
go-version: "1.21"
- name: Cache Go
id: go-cache
uses: actions/cache@v3
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.21.0"
go-version: "1.21"
- name: Cache Go
id: go-cache
uses: actions/cache@v3
Expand Down Expand Up @@ -149,12 +149,10 @@ jobs:
- name: Gen genotelcontribcol
run: |
make genotelcontribcol
git diff
git diff -s --exit-code || (echo 'Generated code is out of date, please run "make genotelcontribcol" and commit the changes in this PR.' && exit 1)
- name: Gen genoteltestbedcol
run: |
make genoteltestbedcol
git diff
git diff -s --exit-code || (echo 'Generated code is out of date, please run "make genoteltestbedcol" and commit the changes in this PR.' && exit 1)
- name: CodeGen
run: |
Expand All @@ -165,7 +163,7 @@ jobs:
unittest-matrix:
strategy:
matrix:
go-version: ["1.21.0"]
go-version: ["1.21"]
group:
- receiver-0
- receiver-1
Expand Down Expand Up @@ -214,7 +212,7 @@ jobs:
if: ${{ github.actor != 'dependabot[bot]' && always() }}
strategy:
matrix:
go-version: ["1.21.0"]
go-version: ["1.21"]
runs-on: ubuntu-latest
needs: [setup-environment, unittest-matrix]
steps:
Expand All @@ -239,7 +237,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.21.0"
go-version: "1.21"
- name: Cache Go
id: go-cache
uses: actions/cache@v3
Expand All @@ -260,7 +258,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.21.0"
go-version: "1.21"
- name: Cache Go
id: go-cache
uses: actions/cache@v3
Expand All @@ -287,7 +285,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.21.0"
go-version: "1.21"
- name: Cache Go
id: go-cache
uses: actions/cache@v3
Expand Down Expand Up @@ -339,7 +337,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.21.0"
go-version: "1.21"
- name: Cache Go
id: go-cache
uses: actions/cache@v3
Expand Down Expand Up @@ -375,7 +373,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.21.0"
go-version: "1.21"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand Down

0 comments on commit 4c9a072

Please sign in to comment.