Skip to content

Commit 99b1cd4

Browse files
authored
ci: simplify ci, bump version, fix pr linter (#713)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
1 parent 696e2ed commit 99b1cd4

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v4
2020

2121
- name: Download image
22-
uses: actions/download-artifact@v3
22+
uses: actions/download-artifact@v4
2323
with:
2424
name: open-feature-operator-local-${{ github.sha }}
2525
path: ${{ github.workspace }}

.github/workflows/pr-checks.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ on:
99
pull_request:
1010
paths-ignore:
1111
- '**.md'
12-
env:
13-
# Default minimum version of Go to support.
14-
DEFAULT_GO_VERSION: "~1.21"
1512

1613
permissions:
1714
contents: read
@@ -21,10 +18,13 @@ jobs:
2118
name: Unit Tests
2219
runs-on: ubuntu-22.04
2320
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
2424
- name: Install Go
2525
uses: actions/setup-go@v5
2626
with:
27-
go-version: ${{ env.DEFAULT_GO_VERSION }}
27+
go-version-file: 'go.mod'
2828

2929
- name: Setup Environment
3030
run: |
@@ -39,9 +39,6 @@ jobs:
3939
path: ~/go/pkg/mod
4040
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/go.sum') }}
4141

42-
- name: Checkout repository
43-
uses: actions/checkout@v4
44-
4542
- name: Workspace Init
4643
run: make workspace-init
4744

@@ -62,12 +59,12 @@ jobs:
6259
uses: actions/checkout@v4
6360

6461
- name: Set up QEMU
65-
uses: docker/setup-qemu-action@master
62+
uses: docker/setup-qemu-action@v3
6663
with:
6764
platforms: all
6865
- name: Set up Docker Buildx
6966
id: buildx
70-
uses: docker/setup-buildx-action@master
67+
uses: docker/setup-buildx-action@v3
7168
- name: Build
7269
uses: docker/build-push-action@v4
7370
with:
@@ -78,9 +75,9 @@ jobs:
7875
cache-from: type=gha,scope=${{ github.ref_name }}-ofo
7976
cache-to: type=gha,scope=${{ github.ref_name }}-ofo
8077
- name: Run Trivy vulnerability scanner
81-
uses: aquasecurity/trivy-action@master
78+
uses: aquasecurity/trivy-action@0.27.0
8279
with:
83-
input: /github/workspace/open-feature-operator-local.tar
80+
input: ${{ github.workspace }}/open-feature-operator-local.tar
8481
format: "template"
8582
template: "@/contrib/sarif.tpl"
8683
output: "trivy-results.sarif"
@@ -90,7 +87,7 @@ jobs:
9087
with:
9188
sarif_file: "trivy-results.sarif"
9289
- name: Upload image as artifact
93-
uses: actions/upload-artifact@v3
90+
uses: actions/upload-artifact@v4
9491
with:
9592
name: open-feature-operator-local-${{ github.sha }}
9693
path: ${{ github.workspace }}/open-feature-operator-local.tar

.github/workflows/pr-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
runs-on: ubuntu-22.04
2222
steps:
2323
- uses: amannn/action-semantic-pull-request@v5
24+
id: lint_pr_title
2425
env:
2526
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2627

0 commit comments

Comments
 (0)