Skip to content

Commit

Permalink
github: workflow reorg (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomponline authored Oct 17, 2024
2 parents 4b3b38e + d83eaa2 commit 83b0e32
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 29 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/commits.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/image-amazonlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fail-fast: false
matrix:
release:
- 2 # Requires cgroups v1 for tests. They will pass on ubuntu-20.04 runner.
- 2 # Requires cgroups v1 for tests. They will pass on ubuntu-20.04 runner.
- 2023
variant:
- default
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/image-oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fail-fast: false
matrix:
release:
- 7 # Requires cgroups v1 for tests. They will pass on ubuntu-20.04 runner.
- 7 # Requires cgroups v1 for tests. They will pass on ubuntu-20.04 runner.
- 8
- 9
variant:
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Lint
on:
pull_request:
paths:
- '.github/workflows/**'

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

defaults:
run:
# Make sure bash is always invoked with `-eo pipefail`
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
shell: bash

jobs:
lint-tests:
name: Lint
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: yamllint
uses: ibiqlik/action-yamllint@v3
with:
file_or_dir: .github/workflows/
strict: true
6 changes: 0 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Tests
on:
push:
pull_request:
paths:
- '.github/**'
Expand Down Expand Up @@ -56,11 +55,6 @@ jobs:
# A non-shallow clone is needed for the Differential ShellCheck
fetch-depth: 0

- name: yamllint
uses: ibiqlik/action-yamllint@v3
with:
file_or_dir: .github/workflows/

- id: ShellCheck
name: Differential ShellCheck
uses: redhat-plumbers-in-action/differential-shellcheck@v5
Expand Down

0 comments on commit 83b0e32

Please sign in to comment.