This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
52 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Add issue to project | ||
|
||
on: | ||
issues: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
add-issue-to-project: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: UCL-MIRSG/.github/actions/[email protected] | ||
with: | ||
app-id: ${{ secrets.APP_ID }} | ||
app-pem: ${{ secrets.APP_PEM }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,17 @@ | ||
--- | ||
name: Pre-commit checks | ||
name: Linting | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- "renovate/**" | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
linting: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Set PY | ||
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV | ||
|
||
- name: Cache pre-commit install | ||
uses: actions/cache@v3 | ||
- uses: UCL-MIRSG/.github/actions/[email protected] | ||
with: | ||
path: | | ||
${{ env.pythonLocation }} | ||
~/.cache/pre-commit | ||
key: | | ||
pre-commit-${{ env.PY }}-${{ hashFiles('.pre-commit-config.yaml') }} | ||
- name: Install dependencies | ||
run: pip install pre-commit | ||
|
||
- name: Install pre-commit hooks | ||
run: pre-commit install | ||
|
||
- name: Run pre-commit | ||
run: pre-commit run --all-files --color always | ||
ansible-roles-config: ./meta/requirements.yml | ||
pre-commit-config: ./.pre-commit-config.yaml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "mirsg.docker" | ||
name: Molecule Test | ||
on: | ||
pull_request: | ||
push: | ||
|
@@ -14,28 +14,11 @@ jobs: | |
molecule_scenario: | ||
- centos7 | ||
- rocky8 | ||
|
||
env: | ||
PY_COLORS: 1 | ||
ANSIBLE_FORCE_COLOR: 1 | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v4 | ||
- name: Run `molecule test` | ||
uses: UCL-MIRSG/.github/actions/[email protected] | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install test dependencies | ||
run: | | ||
sudo apt-get update && sudo apt-get -y install rsync | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install ansible ansible-lint molecule molecule-plugins[docker] docker requests==2.29.0 | ||
- name: Run role tests | ||
run: >- | ||
molecule --version && | ||
ansible --version && | ||
molecule --debug test -s ${{ matrix.molecule_scenario }} | ||
scenario: ${{ matrix.molecule_scenario }} |