Skip to content

Commit

Permalink
Actions Updates (#178)
Browse files Browse the repository at this point in the history
Brings a bunch of our github actions back up to date to remove more deprecation warnings and also removes an unnecessary caching step since actions/setup-go@v4 does this by default.

Signed-off-by: dtfranz <dfranz@redhat.com>
  • Loading branch information
dtfranz committed Apr 19, 2023
1 parent a3e18da commit 5e79476
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 33 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,10 @@ jobs:

- uses: actions/checkout@v3

- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod

- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run e2e tests
run: |
make e2e
11 changes: 1 addition & 10 deletions .github/workflows/go-apidiff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,8 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod

- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: joelanford/go-apidiff@main
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:
fetch-depth: 0

- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"

- name: Docker Login
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
Expand All @@ -55,7 +55,8 @@ jobs:
- name: Generate the operator-controller release manifests
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
run: |
make quickstart VERSION=${GITHUB_REF#refs/tags/}
echo VERSION="${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
make quickstart
- name: Run goreleaser
run: make release
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,10 @@ jobs:

- uses: actions/checkout@v3

- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod

- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run basic unit tests
run: |
make test-unit

0 comments on commit 5e79476

Please sign in to comment.