-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 1.47 KB
/
cicd.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
name: Molecule Test
run-name: Molecule test
on:
push:
paths-ignore:
- '**.md'
# Schedules not supported yet
# https://docs.gitea.com/usage/actions/faq#what-workflow-trigger-events-does-gitea-support
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
# schedule:
# # Every 1st of the month at 10pm
# - cron: '0 22 1 * *'
jobs:
Molecule:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- "2204"
- "2004"
container:
image: docker.io/halfwalker/alpineset2
# This option for using v0.2.6 ACT runner
privileged: true
# This option for using old -main- ACT runner
options: --privileged
env:
# Set DRONE_REPO_NAME to be used in molecule.yml
# That way the container name is consistent between github/gitea and Drone
DRONE_REPO_NAME: ansible-gitea
MOLECULE_DISTRO: ubuntu${{ matrix.version }}
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
GH_USER: ${{ secrets.GH_USER }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: See what exists
run: |
pwd
ls -la
- run: ansible --version
- run: molecule --version
- run: yamllint .
- run: ansible-lint --force-color
- run: molecule test