chore: update GitHub actions to their latest versions

This commit is contained in:
Chris Hawk 2023-11-10 12:57:09 -08:00
parent 7dcce5e379
commit 92eb9c814b
6 changed files with 16 additions and 16 deletions

View file

@ -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 }})

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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