diff --git a/.forgejo/workflows/lint.yml b/.forgejo/workflows/lint.yml deleted file mode 100644 index b22f18f..0000000 --- a/.forgejo/workflows/lint.yml +++ /dev/null @@ -1,41 +0,0 @@ ---- -name: lint - -on: # yamllint disable-line rule:truthy - pull_request: - push: - branches: - - master - paths: - - '**/*.yml' - schedule: - - cron: "20 4 * * 0" - -jobs: - test: - runs-on: ubuntu-24.04 # actually 'ghcr.io/catthehacker/ubuntu:runner-24.04', tagged on runner - steps: - - - uses: actions/checkout@v5 - - - uses: actions/setup-python@v6 - with: - python-version: '3.13' - cache: 'pip' - env: - FORCE_COLOR: '1' - - - run: pip install -r requirements.txt - env: - FORCE_COLOR: '1' - - - name: cache '.ansible/collections' - id: cache-collections - uses: actions/cache@v4 - with: - path: /home/runner/.ansible - key: zfs_dkms-runner-dot-ansible - - - run: ansible-lint - env: - ANSIBLE_FORCE_COLOR: '1' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 120000 index a62eaf6..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1 +0,0 @@ -../../.forgejo/workflows/lint.yml \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..b22f18f --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,41 @@ +--- +name: lint + +on: # yamllint disable-line rule:truthy + pull_request: + push: + branches: + - master + paths: + - '**/*.yml' + schedule: + - cron: "20 4 * * 0" + +jobs: + test: + runs-on: ubuntu-24.04 # actually 'ghcr.io/catthehacker/ubuntu:runner-24.04', tagged on runner + steps: + + - uses: actions/checkout@v5 + + - uses: actions/setup-python@v6 + with: + python-version: '3.13' + cache: 'pip' + env: + FORCE_COLOR: '1' + + - run: pip install -r requirements.txt + env: + FORCE_COLOR: '1' + + - name: cache '.ansible/collections' + id: cache-collections + uses: actions/cache@v4 + with: + path: /home/runner/.ansible + key: zfs_dkms-runner-dot-ansible + + - run: ansible-lint + env: + ANSIBLE_FORCE_COLOR: '1'