Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use custom docker image for tests #67

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
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
13 changes: 10 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ jobs:
strategy:
fail-fast: false
matrix:
scenario: ${{ fromJson(needs.prepare-matrix.outputs.molecule-scenarios) }}
scenario: [default] # ${{ fromJson(needs.prepare-matrix.outputs.molecule-scenarios) }}
name: "Run tests"
# cgroup version shouldn't be cgroup2fs, check:
# stat -c %T -f /sys/fs/cgroup
runs-on: ubuntu-20.04
#runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -56,9 +57,15 @@ jobs:
- name: Install requirements
run: |
make init

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: false

- name: Run tests
run: |
molecule test --scenario-name "${{ matrix.scenario }}"
molecule converge --scenario-name "${{ matrix.scenario }}"
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
3 changes: 2 additions & 1 deletion molecule/configure-k8s-instances.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---

- name: Install Python
ansible.builtin.raw: apt update && apt install -y python3-pip python3 python3-apt
ansible.builtin.raw: |
apt update && apt install -yq --no-install-recommends python3 python3-pip python3-apt
changed_when: false

- name: Install prerequisites
Expand Down
2 changes: 1 addition & 1 deletion molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
platforms:
- name: k8s-control-plane-01
hostname: k8s-control-plane-01
image: kindest/node:v1.26.3
image: bissquit/my-kind:v0.1.1 # kindest/node:v1.26.3

Check warning on line 10 in molecule/default/molecule.yml

View workflow job for this annotation

GitHub Actions / Run linters

10:36 [comments] too few spaces before comment
groups:
- etcd
- control_plane
Expand Down
2 changes: 1 addition & 1 deletion molecule/default_ext-etcd-sec/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- &default_k8s_platform
name: k8s-control-plane-01
hostname: k8s-control-plane-01
image: kindest/node:v1.26.3
image: bissquit/my-kind:v0.1.1 # kindest/node:v1.26.3

Check warning on line 11 in molecule/default_ext-etcd-sec/molecule.yml

View workflow job for this annotation

GitHub Actions / Run linters

11:36 [comments] too few spaces before comment
groups:
- control_plane
volumes:
Expand Down
2 changes: 1 addition & 1 deletion molecule/default_join-workers/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- &default_platform
name: k8s-control-plane-01
hostname: k8s-control-plane-01
image: kindest/node:v1.26.3
image: bissquit/my-kind:v0.1.1 # kindest/node:v1.26.3

Check warning on line 11 in molecule/default_join-workers/molecule.yml

View workflow job for this annotation

GitHub Actions / Run linters

11:36 [comments] too few spaces before comment
groups:
- control_plane
volumes:
Expand Down
2 changes: 1 addition & 1 deletion molecule/default_multi-master/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- &default_platform
name: k8s-control-plane-01
hostname: k8s-control-plane-01
image: kindest/node:v1.26.3
image: bissquit/my-kind:v0.1.1 # kindest/node:v1.26.3

Check warning on line 11 in molecule/default_multi-master/molecule.yml

View workflow job for this annotation

GitHub Actions / Run linters

11:36 [comments] too few spaces before comment
groups:
- control_plane
volumes:
Expand Down
2 changes: 1 addition & 1 deletion molecule/end-to-end/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
- &default_platform
name: k8s-control-plane-01
hostname: k8s-control-plane-01
image: kindest/node:v1.26.3
image: bissquit/my-kind:v0.1.1 # kindest/node:v1.26.3

Check warning on line 57 in molecule/end-to-end/molecule.yml

View workflow job for this annotation

GitHub Actions / Run linters

57:36 [comments] too few spaces before comment
groups:
- control_plane
- etcd_clients
Expand Down
Loading