From 2a19aa82dcd59b4eddac4b8a9c31775c4d91c3f0 Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Thu, 9 Nov 2023 19:45:55 +0100 Subject: [PATCH] Use checkout v4 --- .github/workflows/ansible-lint.yml | 2 +- .github/workflows/barman.yml | 2 +- .github/workflows/glances.yml | 2 +- .github/workflows/golang.yml | 51 +++++++++++++++++++++++++ .github/workflows/memcached.yml | 2 +- .github/workflows/mongodb.yml | 2 +- .github/workflows/mysql.yml | 2 +- .github/workflows/mysql_client.yml | 2 +- .github/workflows/postgresql.yml | 2 +- .github/workflows/postgresql_client.yml | 2 +- .github/workflows/python.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/ssh.yml | 2 +- .github/workflows/svn.yml | 2 +- .github/workflows/systemd_timer.yml | 2 +- .github/workflows/yaml-lint.yml | 2 +- 16 files changed, 66 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/golang.yml diff --git a/.github/workflows/ansible-lint.yml b/.github/workflows/ansible-lint.yml index 14d6db4..a1364aa 100644 --- a/.github/workflows/ansible-lint.yml +++ b/.github/workflows/ansible-lint.yml @@ -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 diff --git a/.github/workflows/barman.yml b/.github/workflows/barman.yml index 699c500..f72c7bf 100644 --- a/.github/workflows/barman.yml +++ b/.github/workflows/barman.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Check out the codebase. - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: 'barman' diff --git a/.github/workflows/glances.yml b/.github/workflows/glances.yml index 358349b..f081fc1 100644 --- a/.github/workflows/glances.yml +++ b/.github/workflows/glances.yml @@ -32,7 +32,7 @@ jobs: steps: - name: Check out the codebase. - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: 'glances' diff --git a/.github/workflows/golang.yml b/.github/workflows/golang.yml new file mode 100644 index 0000000..adf0f73 --- /dev/null +++ b/.github/workflows/golang.yml @@ -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 }} diff --git a/.github/workflows/memcached.yml b/.github/workflows/memcached.yml index 950a841..48e59a4 100644 --- a/.github/workflows/memcached.yml +++ b/.github/workflows/memcached.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Check out the codebase. - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: 'memcached' diff --git a/.github/workflows/mongodb.yml b/.github/workflows/mongodb.yml index a6efa23..79318a9 100644 --- a/.github/workflows/mongodb.yml +++ b/.github/workflows/mongodb.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Check out the codebase. - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: 'mongodb' diff --git a/.github/workflows/mysql.yml b/.github/workflows/mysql.yml index a9027e5..b2545ce 100644 --- a/.github/workflows/mysql.yml +++ b/.github/workflows/mysql.yml @@ -32,7 +32,7 @@ jobs: steps: - name: Check out the codebase. - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: 'mysql' diff --git a/.github/workflows/mysql_client.yml b/.github/workflows/mysql_client.yml index 91a07fa..ef6b436 100644 --- a/.github/workflows/mysql_client.yml +++ b/.github/workflows/mysql_client.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Check out the codebase. - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: 'mysql_client' diff --git a/.github/workflows/postgresql.yml b/.github/workflows/postgresql.yml index 8a5fcf9..06f4715 100644 --- a/.github/workflows/postgresql.yml +++ b/.github/workflows/postgresql.yml @@ -32,7 +32,7 @@ jobs: steps: - name: Check out the codebase. - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: 'postgresql' diff --git a/.github/workflows/postgresql_client.yml b/.github/workflows/postgresql_client.yml index ec6a595..c0b1e62 100644 --- a/.github/workflows/postgresql_client.yml +++ b/.github/workflows/postgresql_client.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Check out the codebase. - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: 'postgresql_client' diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 8a37d01..be87813 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Check out the codebase. - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: 'python' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index df80b49..b60e68a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/ssh.yml b/.github/workflows/ssh.yml index f3ec892..eb69ff6 100644 --- a/.github/workflows/ssh.yml +++ b/.github/workflows/ssh.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Check out the codebase. - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: 'ssh' diff --git a/.github/workflows/svn.yml b/.github/workflows/svn.yml index 92897cf..e1db2a0 100644 --- a/.github/workflows/svn.yml +++ b/.github/workflows/svn.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Check out the codebase. - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: 'svn' diff --git a/.github/workflows/systemd_timer.yml b/.github/workflows/systemd_timer.yml index 62be156..6f071b0 100644 --- a/.github/workflows/systemd_timer.yml +++ b/.github/workflows/systemd_timer.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Check out the codebase. - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: 'systemd_timer' diff --git a/.github/workflows/yaml-lint.yml b/.github/workflows/yaml-lint.yml index 4b12392..da3af0d 100644 --- a/.github/workflows/yaml-lint.yml +++ b/.github/workflows/yaml-lint.yml @@ -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