Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 18 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
timeout-minutes: 30
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
# fetch the whole repo for `git describe` to work
fetch-depth: 0
Expand All @@ -36,7 +36,7 @@ jobs:
make docker-unit-test
mkdir -p out/coverage
mv unit.out out/coverage/
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: unit-tests-coverage
path: out/
Expand All @@ -60,7 +60,7 @@ jobs:
sudo apt-get install -y --no-install-recommends graphviz gnupg2 gpgv2 git gcc make devscripts python3 python3-requests-unixsocket python3-termcolor python3-swiftclient python3-boto python3-azure-storage python3-etcd3 python3-plyvel flake8 faketime dput-ng

- name: "Checkout Repository"
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
# fetch the whole repo for `git describe` to work
fetch-depth: 0
Expand All @@ -77,7 +77,7 @@ jobs:
id: goversion

- name: "Setup Go"
uses: actions/setup-go@v3
uses: actions/setup-go@v7
with:
go-version: ${{ steps.goversion.outputs.GOVER }}

Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
mkdir -p out/coverage
COVERAGE_DIR=$PWD/out/coverage make system-test

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: system-tests-coverage
path: out/
Expand All @@ -123,15 +123,15 @@ jobs:
- test
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: "Download Unit Test Coverage"
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: unit-tests-coverage

- name: "Download System Test Coverage"
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: system-tests-coverage

Expand All @@ -158,7 +158,7 @@ jobs:
strategy:
fail-fast: false
matrix:
name: ["Debian 13/trixie", "Debian 12/bookworm", "Debian 11/bullseye", "Ubuntu 26.04", "Ubuntu 24.04", "Ubuntu 22.04", "Ubuntu 20.04"]
name: ["Debian 13/trixie", "Debian 12/bookworm", "Ubuntu 26.04", "Ubuntu 24.04", "Ubuntu 22.04", "Ubuntu 20.04"]
arch: ["amd64", "i386" , "arm64" , "armhf"]
include:
- name: "Debian 13/trixie"
Expand All @@ -167,9 +167,6 @@ jobs:
- name: "Debian 12/bookworm"
suite: bookworm
image: debian:bookworm-slim
- name: "Debian 11/bullseye"
suite: bullseye
image: debian:bullseye-slim
- name: "Ubuntu 26.04"
suite: resolute
image: ubuntu:26.04
Expand Down Expand Up @@ -199,7 +196,7 @@ jobs:
git config --global --add safe.directory "$GITHUB_WORKSPACE"

- name: "Checkout Repository"
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
# fetch the whole repo for `git describe` to work
fetch-depth: 0
Expand All @@ -212,7 +209,7 @@ jobs:
id: goversion

- name: "Setup Go"
uses: actions/setup-go@v3
uses: actions/setup-go@v7
with:
go-version: ${{ steps.goversion.outputs.GOVER }}

Expand Down Expand Up @@ -268,7 +265,7 @@ jobs:

- name: "Upload CI Artifacts"
if: github.ref != 'refs/heads/master' && !startsWith(github.event.ref, 'refs/tags')
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: aptly_${{ steps.releaseversion.outputs.VERSION }}_${{ matrix.suite }}_${{ matrix.arch }}
path: build/
Expand All @@ -290,7 +287,7 @@ jobs:
goarch: arm
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
# fetch the whole repo for `git describe` to work
fetch-depth: 0
Expand All @@ -301,7 +298,7 @@ jobs:
id: goversion

- name: "Setup Go"
uses: actions/setup-go@v3
uses: actions/setup-go@v7
with:
go-version: ${{ steps.goversion.outputs.GOVER }}

Expand All @@ -328,15 +325,15 @@ jobs:
make binaries GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }}

- name: "Upload Artifacts"
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
if: startsWith(github.event.ref, 'refs/tags')
with:
name: aptly_${{ steps.releaseversion.outputs.VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }}
path: build/aptly_${{ steps.releaseversion.outputs.VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
compression-level: 0 # no compression

- name: "Upload CI Artifacts"
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
if: "!startsWith(github.event.ref, 'refs/tags')"
with:
name: aptly_${{ steps.releaseversion.outputs.VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }}
Expand All @@ -352,7 +349,7 @@ jobs:
if: startsWith(github.event.ref, 'refs/tags')
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: "Get aptly version"
env:
Expand All @@ -364,7 +361,7 @@ jobs:
id: releaseversion

- name: "Download Artifacts"
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
path: out/

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- name: "Read go version from go.mod"
run: |
echo "GOVER=$(sed -n 's/^go \(.*\)/\1/p' go.mod)" >> $GITHUB_OUTPUT
id: goversion

- name: "Setup Go"
uses: actions/setup-go@v3
uses: actions/setup-go@v7
with:
go-version: ${{ steps.goversion.outputs.GOVER }}

Expand Down
Loading