Skip to content

Commit

Permalink
Merge pull request #478 from mdelapenya/podman-make
Browse files Browse the repository at this point in the history
chore(ci): update podman pipeline
  • Loading branch information
mdelapenya committed Jul 5, 2022
2 parents 82aae91 + 804fbc0 commit b5ff9a2
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/ci-podman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,25 @@ jobs:
- name: Set DOCKER_HOST
run: echo "DOCKER_HOST=unix:///run/podman/podman.sock" >> $GITHUB_ENV

- name: modVerify
run: go mod verify

- name: modTidy
run: go mod tidy

- name: gotestsum
# only run tests on linux, there are a number of things that won't allow the tests to run on anything else
# many (maybe, all?) images used can only be build on Linux, they don't have Windows in their manifest, and
# we can't put Windows Server in "Linux Mode" in Github actions
# another, host mode is only available on Linux, and we have tests around that, do we skip them?
run: sudo go run gotest.tools/gotestsum --format short-verbose --rerun-fails=5 --packages="./..." -- -coverprofile=cover.txt
run: sudo make test-unit

- name: modTidy e2e tests
run: make -C e2e tools-tidy

- name: Run e2e tests
run: sudo make test-e2e

- name: Run checker
run: |
./scripts/check_environment.sh
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ jobs:
files: ./cover.txt
name: testcontainers-go-${{ matrix.go-version }}

- name: modTidy e2e tests
if: ${{ matrix.platform == 'ubuntu-latest' }}
run: make -C e2e tools-tidy

- name: Run e2e tests
if: ${{ matrix.platform == 'ubuntu-latest' }}
run: make test-e2e
Expand Down
7 changes: 5 additions & 2 deletions e2e/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ test: tools
--rerun-fails=5 \
--packages="./..." \


.PHONY: tools
tools:
go mod download
go mod download

.PHONY: tools-tidy
tools-tidy:
go mod tidy

0 comments on commit b5ff9a2

Please sign in to comment.