-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.14 KB
/
verify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: verify
on: [push, pull_request]
jobs:
lint:
name: Ansible Lint # Naming the build is important to use it as a status check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ansible-lint
uses: ansible/ansible-lint@main
# optional (see below):
with:
args: ""
setup_python: "true"
working_directory: "ansible"
requirements_file: ""
# https://github.com/geerlingguy/ansible-role-redis/blob/master/.github/workflows/ci.yml
deploy-test:
runs-on: ubuntu-24.04
name: Molecule Test
steps:
- uses: actions/checkout@v4
- name: Install 1Password CLI
# we need op to be on the "deploying device, ie, the GH runner"
uses: 1password/install-cli-action@v1
- name: Install and run molecule
env: # Or as an environment variable
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
run: |
pwd
ls
cd ansible
python3 -m venv venv
. venv/bin/activate
pip3 install molecule molecule-docker passlib
molecule test