Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/workflows/checks-mise.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Checks - mise tools
on:
workflow_call:
workflow_dispatch:
permissions:
contents: read

jobs:
# Every check that needs only the tools mise installs
checks:
name: Run checks
runs-on: ubuntu-24.04
timeout-minutes: 15

steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Restore tools
uses: ./.github/actions/mise-project-setup
with:
directory: .

- parallel:
- name: check:prettier

run: mise run check:prettier
shell: bash

- name: check:pyright-repo

run: mise run check:pyright-repo
shell: bash

- name: check:ruff

env:
RUFF_CACHE_DIR: ${{ runner.temp }}/ruff-cache-check
run: mise run check:ruff
shell: bash

- name: check:ruff:format

env:
RUFF_CACHE_DIR: ${{ runner.temp }}/ruff-cache-format
run: mise run check:ruff:format
shell: bash

- name: check:shellcheck

run: mise run check:shellcheck
shell: bash

- name: check:shellcheck-config-enabled-optional-checks

run: mise run check:shellcheck-config-enabled-optional-checks
shell: bash

- name: check:shellcheck-gha

run: mise run check:shellcheck-gha
shell: bash

- name: check:shfmt

run: mise run check:shfmt
shell: bash
67 changes: 4 additions & 63 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,62 +73,10 @@ jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-homebrew-ubuntu

# Checks for root
check-prettier:
# Checks
checks-mise:
needs: mise-cache-ubuntu
uses: ./.github/workflows/mise-task.yaml
with:
directory: .
task: check:prettier

check-pyright-repo:
needs: mise-cache-ubuntu
uses: ./.github/workflows/mise-task.yaml
with:
directory: .
task: check:pyright-repo

check-ruff:
needs: mise-cache-ubuntu
uses: ./.github/workflows/mise-task.yaml
with:
directory: .
task: check:ruff

check-ruff-format:
needs: mise-cache-ubuntu
uses: ./.github/workflows/mise-task.yaml
with:
directory: .
task: check:ruff:format

check-shellcheck:
needs: mise-cache-ubuntu
uses: ./.github/workflows/mise-task.yaml
with:
directory: .
task: check:shellcheck

check-shellcheck-config-enabled-optional-checks:
needs: mise-cache-ubuntu
uses: ./.github/workflows/mise-task.yaml
with:
directory: .
task: check:shellcheck-config-enabled-optional-checks

check-shellcheck-gha:
needs: mise-cache-ubuntu
uses: ./.github/workflows/mise-task.yaml
with:
directory: .
task: check:shellcheck-gha

check-shfmt:
needs: mise-cache-ubuntu
uses: ./.github/workflows/mise-task.yaml
with:
directory: .
task: check:shfmt
uses: ./.github/workflows/checks-mise.yaml

# CI workflows for projects in the repository
ci-aoc-main:
Expand Down Expand Up @@ -178,14 +126,7 @@ jobs:
check:
if: always()
needs:
- check-prettier
- check-pyright-repo
- check-ruff
- check-ruff-format
- check-shellcheck
- check-shellcheck-config-enabled-optional-checks
- check-shellcheck-gha
- check-shfmt
- checks-mise
- ci-aoc-main
- ci-solvers-cpp
- ci-solvers-python
Expand Down
Loading