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

Fix tput: No value for $TERM and no -T specified error in GitHub Actions pipeline #345

Merged
merged 1 commit into from
May 24, 2023
Merged
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
6 changes: 3 additions & 3 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

name: Ansible-lint

on:
Expand All @@ -15,12 +14,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set TERM environment variable
run: echo "TERM=xterm" >> $GITHUB_ENV

- name: Git clone repo postgresql_cluster
uses: actions/checkout@v2

- name: Lint Ansible Playbook
uses: ansible/ansible-lint-action@v6
with:
path: "roles/"

...
12 changes: 6 additions & 6 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

name: Molecule

on:
Expand Down Expand Up @@ -61,24 +60,25 @@ jobs:
namespace: glillico

steps:
- name: Set TERM environment variable
run: echo "TERM=xterm" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.10"

- name: Install dependencies
run: make bootstrap

- name: Run Molecule tests
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
IMAGE_DISTRO: ${{ matrix.config.distro }}
IMAGE_TAG: ${{ matrix.config.tag }}
IMAGE_NAMESPACE: ${{ matrix.config.namespace }}

...
16 changes: 8 additions & 8 deletions .github/workflows/molecule_pgpro.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---

name: Molecule PostgresPro

on:
schedule:
- cron: '0 0 * * 0'
- cron: "0 0 * * 0"

jobs:
test:
Expand All @@ -21,23 +20,24 @@ jobs:
- ubuntu2204

steps:
- name: Set TERM environment variable
run: echo "TERM=xterm" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.10"

- name: Install dependencies
run: make bootstrap

- name: Run Molecule tests for PostgresPro
run: make molecule-test-scenario
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
IMAGE_DISTRO: ${{ matrix.distro }}
MOLECULE_SCENARIO: 'postgrespro'

...
MOLECULE_SCENARIO: "postgrespro"
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_almalinux8.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
---

name: scheduled PostgreSQL (AlmaLinux 8)

on:
schedule:
- cron: '15 1 * * *'
- cron: "15 1 * * *"

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Set TERM environment variable
run: echo "TERM=xterm" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.10"

- name: Install dependencies
run: make bootstrap

- name: Run Molecule tests
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
IMAGE_DISTRO: almalinux8
IMAGE_NAMESPACE: glillico

...
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_almalinux9.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
---

name: scheduled PostgreSQL (AlmaLinux 9)

on:
schedule:
- cron: '15 1 * * *'
- cron: "15 1 * * *"

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Set TERM environment variable
run: echo "TERM=xterm" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.10"

- name: Install dependencies
run: make bootstrap

- name: Run Molecule tests
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
IMAGE_DISTRO: almalinux9
IMAGE_NAMESPACE: glillico

...
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_centos8.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
---

name: scheduled PostgreSQL (CentOS 8)

on:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Set TERM environment variable
run: echo "TERM=xterm" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.10"

- name: Install dependencies
run: make bootstrap

- name: Run Molecule tests
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
IMAGE_DISTRO: centos8

...
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_centosstream8.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
---

name: scheduled PostgreSQL (CentOS Stream 8)

on:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Set TERM environment variable
run: echo "TERM=xterm" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.10"

- name: Install dependencies
run: make bootstrap

- name: Run Molecule tests
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
IMAGE_DISTRO: centosstream8
IMAGE_NAMESPACE: glillico

...
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_centosstream9.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
---

name: scheduled PostgreSQL (CentOS Stream 9)

on:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Set TERM environment variable
run: echo "TERM=xterm" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.10"

- name: Install dependencies
run: make bootstrap

- name: Run Molecule tests
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
IMAGE_DISTRO: centosstream9
IMAGE_NAMESPACE: glillico

...
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_debian10.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
---

name: scheduled PostgreSQL (Debian 10)

on:
schedule:
- cron: '15 0 * * *'
- cron: "15 0 * * *"

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Set TERM environment variable
run: echo "TERM=xterm" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.10"

- name: Install dependencies
run: make bootstrap

- name: Run Molecule tests
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
IMAGE_DISTRO: debian10

...
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_debian11.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
---

name: scheduled PostgreSQL (Debian 11)

on:
schedule:
- cron: '15 0 * * *'
- cron: "15 0 * * *"

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Set TERM environment variable
run: echo "TERM=xterm" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.10"

- name: Install dependencies
run: make bootstrap

- name: Run Molecule tests
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
IMAGE_DISTRO: debian11

...
Loading