-
-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into host-waitforsql
- Loading branch information
Showing
82 changed files
with
6,860 additions
and
1,007 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: gomod | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 3 | ||
rebase-strategy: disabled | ||
- package-ecosystem: gomod | ||
directory: "/e2e" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 3 | ||
rebase-strategy: disabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Podman pipeline | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
go-version: [1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.x] | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
||
- name: Enable systemd user process | ||
run: | | ||
loginctl enable-linger $(whoami) | ||
sleep 1 | ||
- name: Set XDG_RUNTIME_DIR | ||
run: echo "XDG_RUNTIME_DIR=/run/user/$UID" >> $GITHUB_ENV | ||
|
||
- name: Install Podman | ||
run: | | ||
set -x | ||
sudo apt-get remove -y podman docker-ce docker docker-engine docker.io containerd runc ||: | ||
sudo apt update | ||
sudo apt install -y software-properties-common debian-archive-keyring dirmngr | ||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9 | ||
sudo add-apt-repository -y "deb http://deb.debian.org/debian experimental main" | ||
sudo apt update | ||
sudo apt -y -t experimental install podman crun docker-compose | ||
sudo systemctl daemon-reload | ||
sleep 5 | ||
sudo systemctl start podman.socket | ||
sudo podman info | ||
- 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 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,6 @@ site/ | |
src/mkdocs-codeinclude-plugin | ||
src/pip-delete-this-directory.txt | ||
.idea/ | ||
.DS_Store | ||
|
||
cover.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
.PHONY: test-all | ||
test-all: tools test-unit test-e2e | ||
|
||
.PHONY: test-unit | ||
test-unit: | ||
@echo "Running unit tests..." | ||
go run gotest.tools/gotestsum \ | ||
--format short-verbose \ | ||
--rerun-fails=5 \ | ||
--packages="./..." \ | ||
-- -coverprofile=cover.txt | ||
|
||
.PHONY: test-e2e | ||
test-e2e: | ||
@echo "Running end-to-end tests..." | ||
make -C e2e test | ||
|
||
.PHONY: tools | ||
tools: | ||
go mod download |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.