Skip to content

Commit

Permalink
Use checkout v4
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Nov 9, 2023
1 parent 07d92e3 commit 2a19aa8
Show file tree
Hide file tree
Showing 16 changed files with 66 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
# Important: This sets up your GITHUB_WORKSPACE environment variable
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Lint Ansible Playbook
# replace "master" with any valid ref
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/barman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: 'barman'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/glances.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: 'glances'

Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/golang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: "alphanodes.setup.golang"
'on':
pull_request:
push:
branches:
- main
paths:
- 'roles/golang/**'
- 'molecule/golang/**'
- '.github/workflows/golang.yml'

defaults:
run:
working-directory: 'golang'

jobs:
build:
runs-on: ubuntu-latest
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1

strategy:
matrix:
distro:
- ubuntu2204
- debian11

steps:
- name: Check out the codebase.
uses: actions/checkout@v4
with:
path: 'golang'

- name: Set up Python 3.
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install test dependencies.
run: |
python -m pip install --no-cache-dir --upgrade pip
python -m pip install -r requirements.txt
- name: Run Molecule tests.
run: |
molecule --version
molecule test -s golang
env:
MOLECULE_DISTRO: ${{ matrix.distro }}
2 changes: 1 addition & 1 deletion .github/workflows/memcached.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: 'memcached'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mongodb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: 'mongodb'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: 'mysql'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mysql_client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: 'mysql_client'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: 'postgresql'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/postgresql_client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: 'postgresql_client'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: 'python'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: 'ssh'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/svn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: 'svn'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/systemd_timer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: 'systemd_timer'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/yaml-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
# Important: This sets up your GITHUB_WORKSPACE environment variable
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: 'Yamllint'
uses: karancode/yamllint-github-action@master
Expand Down

0 comments on commit 2a19aa8

Please sign in to comment.