Skip to content

Commit

Permalink
simplify workflows
Browse files Browse the repository at this point in the history
only one go version is used, so matrix is not necessary
  • Loading branch information
MalinAhlberg committed Sep 19, 2024
1 parent ab2f1b7 commit a1c7a5c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 21 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/code-linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@ on:
- '**.go'
- '**/go.*'

env:
go-version: '1.23'

jobs:
lint_download:
name: Lint download code
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version: ['1.23']
steps:
- name: Set up Go ${{ matrix.go-version }}
- name: Set up Go ${{ env.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
go-version: ${{ env.go-version }}
id: go

- name: Check out code into the Go module directory
Expand All @@ -36,13 +37,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version: ['1.23']
steps:
- name: Set up Go ${{ matrix.go-version }}
- name: Set up Go ${{ env.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
go-version: ${{ env.go-version }}
id: go

- name: Check out code into the Go module directory
Expand Down
20 changes: 7 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches-ignore: [main]

env:
go-version: '1.23'

jobs:

sftp_inbox:
Expand Down Expand Up @@ -32,15 +35,12 @@ jobs:
test_download:
name: Test Download
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.23']
steps:

- name: Set up Go ${{ matrix.go-version }}
- name: Set up Go ${{ env.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
go-version: ${{ env.go-version }}
id: go

- name: Check out code into the Go module directory
Expand Down Expand Up @@ -70,15 +70,12 @@ jobs:
test_sda:
name: Test sensitive-data-archive
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.23']
steps:

- name: Set up Go ${{ matrix.go-version }}
- name: Set up Go ${{ env.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
go-version: ${{ env.go-version }}
id: go

- name: Check out code into the Go module directory
Expand Down Expand Up @@ -108,9 +105,6 @@ jobs:
test_sda_admin:
name: Test SDA Admin
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.23']
steps:

- name: Set up Go ${{ matrix.go-version }}
Expand Down

0 comments on commit a1c7a5c

Please sign in to comment.