install jdk in user dir on linux (#5) #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Ansible Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # needed for progressive mode to work | |
- name: Run ansible-lint | |
uses: ansible/ansible-lint-action@v6 | |
molecule: | |
name: Molecule | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
distro: | |
- rockylinux9 | |
- ubuntu2404 | |
- ubuntu2204 | |
- ubuntu2004 | |
- debian12 | |
- debian11 | |
steps: | |
- name: Check out the codebase. | |
uses: actions/checkout@v4 | |
- name: Set up Python 3. | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install test dependencies. | |
run: pip3 install ansible molecule molecule-plugins[docker] docker | |
- name: Run Molecule tests. | |
run: molecule test | |
env: | |
MOLECULE_DISTRO: ${{ matrix.distro }} | |
molecule-mac: | |
name: ${{ matrix.os }}-${{ matrix.arch }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- macos-13 | |
- macos-14 | |
include: | |
- os: macos-13 | |
arch: intel | |
- os: macos-14 | |
arch: arm | |
steps: | |
- name: Check out the codebase. | |
uses: actions/checkout@v4 | |
- name: Set up Python 3. | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install test dependencies. | |
run: pip3 install ansible molecule | |
- name: Run Molecule tests. | |
run: molecule test -s macos |