mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-08-23 06:21:49 -07:00
chore: update GitHub actions to their latest versions
chore: update GitHub actions to their latest versions
This commit is contained in:
commit
4927c06e15
10 changed files with 29 additions and 27 deletions
|
@ -23,13 +23,13 @@ jobs:
|
||||||
- stable-2.13
|
- stable-2.13
|
||||||
steps:
|
steps:
|
||||||
- name: check out code
|
- name: check out code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: ansible_collections/google/cloud
|
path: ansible_collections/google/cloud
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.9' # this is the minimum version required for Ansible 2.13
|
python-version: '3.9' # this is the minimum version required for Ansible 2.15
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pip install -r requirements.txt
|
run: pip install -r requirements.txt
|
||||||
- name: Install ansible-base (${{ matrix.ansible_version }})
|
- name: Install ansible-base (${{ matrix.ansible_version }})
|
||||||
|
|
10
.github/workflows/ansible-test.yml
vendored
10
.github/workflows/ansible-test.yml
vendored
|
@ -1,7 +1,7 @@
|
||||||
name: "Run tests for the cloud.google collection"
|
name: "Run tests for the cloud.google collection"
|
||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
env:
|
env:
|
||||||
PYTHON_VERSION: "3.9" # minimum version for Ansible 2.14
|
PYTHON_VERSION: "3.9" # minimum version for Ansible 2.15
|
||||||
jobs:
|
jobs:
|
||||||
sanity-and-lint:
|
sanity-and-lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -14,11 +14,11 @@ jobs:
|
||||||
- stable-2.14
|
- stable-2.14
|
||||||
steps:
|
steps:
|
||||||
- name: check out code
|
- name: check out code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: ansible_collections/google/cloud
|
path: ansible_collections/google/cloud
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ env.PYTHON_VERSION }}
|
python-version: ${{ env.PYTHON_VERSION }}
|
||||||
# Automation-hub requires python2.7 sanity tests
|
# Automation-hub requires python2.7 sanity tests
|
||||||
|
@ -51,11 +51,11 @@ jobs:
|
||||||
- stable-2.11
|
- stable-2.11
|
||||||
steps:
|
steps:
|
||||||
- name: check out code
|
- name: check out code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: ansible_collections/google/cloud
|
path: ansible_collections/google/cloud
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "${{ env.PYTHON_VERSION }}"
|
python-version: "${{ env.PYTHON_VERSION }}"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|
4
.github/workflows/automationhub.yml
vendored
4
.github/workflows/automationhub.yml
vendored
|
@ -8,9 +8,9 @@ jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|
9
.github/workflows/gcloud.yml
vendored
9
.github/workflows/gcloud.yml
vendored
|
@ -12,7 +12,7 @@ on:
|
||||||
- 'molecule/gcloud/**'
|
- 'molecule/gcloud/**'
|
||||||
jobs:
|
jobs:
|
||||||
molecule:
|
molecule:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
PY_COLORS: 1
|
PY_COLORS: 1
|
||||||
ANSIBLE_FORCE_COLOR: 1
|
ANSIBLE_FORCE_COLOR: 1
|
||||||
|
@ -26,12 +26,12 @@ jobs:
|
||||||
- gcloud
|
- gcloud
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: ansible_collections/google/cloud
|
path: ansible_collections/google/cloud
|
||||||
|
|
||||||
- name: Set up Python 3.9
|
- name: Set up Python 3.9
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: 3.9
|
||||||
|
|
||||||
|
@ -47,9 +47,10 @@ jobs:
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
|
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install molecule[docker] yamllint ansible ansible-lint docker
|
pip install molecule-plugins[docker] yamllint ansible ansible-lint docker
|
||||||
|
|
||||||
- name: Run role test
|
- name: Run role test
|
||||||
|
working-directory: ansible_collections/google/cloud
|
||||||
run: >-
|
run: >-
|
||||||
molecule --version &&
|
molecule --version &&
|
||||||
ansible --version &&
|
ansible --version &&
|
||||||
|
|
9
.github/workflows/gcsfuse.yml
vendored
9
.github/workflows/gcsfuse.yml
vendored
|
@ -10,7 +10,7 @@ on:
|
||||||
- .github/workflows/gcsfuse.yml
|
- .github/workflows/gcsfuse.yml
|
||||||
jobs:
|
jobs:
|
||||||
gcsfuse:
|
gcsfuse:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
PY_COLORS: 1
|
PY_COLORS: 1
|
||||||
ANSIBLE_FORCE_COLOR: 1
|
ANSIBLE_FORCE_COLOR: 1
|
||||||
|
@ -21,12 +21,12 @@ jobs:
|
||||||
- gcsfuse
|
- gcsfuse
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: ansible_collections/google/cloud
|
path: ansible_collections/google/cloud
|
||||||
|
|
||||||
- name: Set up Python 3.9
|
- name: Set up Python 3.9
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: 3.9
|
||||||
|
|
||||||
|
@ -42,9 +42,10 @@ jobs:
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
|
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install molecule[docker] yamllint ansible ansible-lint docker
|
pip install molecule-plugins[docker] yamllint ansible ansible-lint docker
|
||||||
|
|
||||||
- name: Run role test
|
- name: Run role test
|
||||||
|
working-directory: ansible_collections/google/cloud
|
||||||
run: >-
|
run: >-
|
||||||
molecule --version &&
|
molecule --version &&
|
||||||
ansible --version &&
|
ansible --version &&
|
||||||
|
|
4
.github/workflows/pythonpublish.yml
vendored
4
.github/workflows/pythonpublish.yml
vendored
|
@ -8,9 +8,9 @@ jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|
|
@ -124,10 +124,10 @@ Run `ansible-test integration`. Currently some tests are disabled as [test are b
|
||||||
### Prequisites for role tests
|
### Prequisites for role tests
|
||||||
|
|
||||||
If you would like to use podman, you must
|
If you would like to use podman, you must
|
||||||
install the `molecule[podman]` package in PyPI:
|
install the `molecule-plugins[podman]` package in PyPI:
|
||||||
|
|
||||||
```
|
```
|
||||||
pip install --upgrade molecule[podman]
|
pip install --upgrade molecule-plugins[podman]
|
||||||
```
|
```
|
||||||
|
|
||||||
### Running role tests
|
### Running role tests
|
||||||
|
|
|
@ -9,13 +9,13 @@ lint: |
|
||||||
ansible-lint
|
ansible-lint
|
||||||
platforms:
|
platforms:
|
||||||
- name: instance
|
- name: instance
|
||||||
image: ubuntu:18.04
|
image: ubuntu:20.04
|
||||||
privileged: true
|
privileged: true
|
||||||
ansible.builtin.command: "/lib/systemd/systemd"
|
ansible.builtin.command: "/lib/systemd/systemd"
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
- name: instance
|
- name: instance
|
||||||
image: debian:9
|
image: debian:10
|
||||||
privileged: true
|
privileged: true
|
||||||
ansible.builtin.command: "/lib/systemd/systemd"
|
ansible.builtin.command: "/lib/systemd/systemd"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -9,13 +9,13 @@ lint: |
|
||||||
ansible-lint
|
ansible-lint
|
||||||
platforms:
|
platforms:
|
||||||
- name: instance
|
- name: instance
|
||||||
image: ubuntu:18.04
|
image: ubuntu:20.04
|
||||||
privileged: true
|
privileged: true
|
||||||
ansible.builtin.command: "/lib/systemd/systemd"
|
ansible.builtin.command: "/lib/systemd/systemd"
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
- name: instance
|
- name: instance
|
||||||
image: debian:9
|
image: debian:10
|
||||||
privileged: true
|
privileged: true
|
||||||
ansible.builtin.command: "/lib/systemd/systemd"
|
ansible.builtin.command: "/lib/systemd/systemd"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
- name: Gcsfuse | Add the apt repository
|
- name: Gcsfuse | Add the apt repository
|
||||||
ansible.builtin.apt_repository:
|
ansible.builtin.apt_repository:
|
||||||
repo: deb http://packages.cloud.google.com/apt gcsfuse-{{ ansible_distribution_release }} main
|
repo: deb https://packages.cloud.google.com/apt gcsfuse-{{ ansible_distribution_release }} main
|
||||||
state: present
|
state: present
|
||||||
filename: gcsfuse
|
filename: gcsfuse
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue