Skip to content

passing tests

passing tests #21

Workflow file for this run

---
# This is a basic workflow to help you get started with Actions
name: Molecule
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
pull_request:
branches:
- master
- tags/*
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
requirements:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
with:
path: tcharl.ansible_localuser
- name: install prereq
run: |
cd tcharl.ansible_localuser
ansible-galaxy role install -r requirements-standalone.yml
ansible-galaxy collection install -r requirements-collections.yml
lint:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
with:
path: tcharl.ansible_localuser
- name: update apt
run: |
sudo apt update
- name: install aptitude packages
run: |
sudo apt -y install sudo python3 python3-pip
- name: pip install packages
run: |
pip3 install wheel setuptools tox
- name: tox lint
run: |
cd tcharl.ansible_localuser
tox -e lint
test:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
with:
path: tcharl.ansible_localuser
- name: add docker apt key
run: |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- name: add docker apt repository
run: |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- name: update apt
run: |
sudo apt update
# - name: apt upgrade
# run: |
# sudo apt upgrade
- name: install aptitude packages
run: |
sudo apt -y install bridge-utils dnsmasq-base ebtables ca-certificates curl gcc iproute2 sudo rustc python3 python3-pip python3-setuptools docker-ce docker-ce-cli containerd.io
- name: pip install packages
run: |
pip3 install wheel setuptools setuptools-rust tox
- name: execute tests
run: |
cd tcharl.ansible_localuser
tox -e test-exec