Skip to content

Commit

Permalink
ci: setup workflow for molecule testing
Browse files Browse the repository at this point in the history
Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>
  • Loading branch information
zekker6 committed Feb 22, 2024
1 parent c6478b8 commit dc8ae57
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'Molecule Test'
on:
pull_request: { }
push: { }

jobs:
lint:
name: 'Lint'
runs-on: ubuntu-latest
container:
image: python:3.11-alpine
steps:
- name: 'Checkout'
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Cache .venv directory
uses: actions/cache@v3
with:
path: .venv
key: ${{ runner.os }}-venv-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-venv-
- name: Converge
run: |
apk add --update --no-cache --virtual build_dependencies gcc musl-dev libffi-dev openssl-dev rust cargo make
make init-venv
make molecule-converge

0 comments on commit dc8ae57

Please sign in to comment.