Skip to content

Commit

Permalink
update GitHub Actions for new testing setup
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Feb 16, 2025
1 parent 59b56fe commit a7c8f67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ jobs:
- name: run tests (linux)
if: matrix.os == 'ubuntu-latest'
run: |
go test -v ./internal/... && go test -c
go test -v ./...
echo "::group::rsync from Debian"
docker run -v $PWD:/usr/src/rsync/ -w /usr/src/rsync rsync-debian ./rsync.test -test.v
docker run -v $PWD:/usr/src/rsync/ -w /usr/src/rsync rsync-debian go test ./...
echo "::endgroup::"
echo "::group::rsync from Fedora"
docker run -v $PWD:/usr/src/rsync/ -w /usr/src/rsync rsync-fedora ./rsync.test -test.v
docker run -v $PWD:/usr/src/rsync/ -w /usr/src/rsync rsync-fedora go test ./...
echo "::endgroup::"
- name: run tests (macos)
if: matrix.os == 'macos-latest'
run: go test -v ./internal/... && go test -c && sudo ./rsync.test -test.v
run: sudo go test -v ./...

- name: run tests (windows)
if: matrix.os == 'windows-latest'
Expand Down
2 changes: 1 addition & 1 deletion testdata/ci-debian.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN echo 'APT::Acquire::Retries "5";' > /etc/apt/apt.conf.d/80retry
# Install rsync (for running tests).
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
rsync ssh git ca-certificates build-essential && \
rsync ssh git ca-certificates build-essential golang-go && \
rm -rf /var/lib/apt/lists/*

# Build openrsync (for running tests).
Expand Down
2 changes: 1 addition & 1 deletion testdata/ci-fedora.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
FROM fedora

# Install rsync (for running tests).
RUN dnf -y update && dnf -y install rsync openssh-clients && dnf clean all
RUN dnf -y update && dnf -y install rsync openssh-clients go && dnf clean all

0 comments on commit a7c8f67

Please sign in to comment.