diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2847be..bb60c32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - dev pull_request: paths: - '.swiftlint.yml' @@ -108,24 +107,4 @@ jobs: with: name: MergedTestResults path: test_output/final - retention-days: 30 - - discover-typos: - name: Discover Typos - runs-on: macos-15 - env: - DEVELOPER_DIR: /Applications/Xcode_16.4.app/Contents/Developer - steps: - - uses: actions/checkout@v6 - - - name: Set up Python environment - run: | - python3 -m venv .venv - source .venv/bin/activate - pip install --upgrade pip - pip install codespell - - - name: Discover typos - run: | - source .venv/bin/activate - codespell --ignore-words-list="hart,inout,msdos,sur" --skip="./.build/*,./.git/*" \ No newline at end of file + retention-days: 30 \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..6a7c5e6 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,50 @@ +name: lint + +on: + push: + branches: + - main + pull_request: + paths: + - "Sources/**" + - ".github/workflows/ci.yml" + - "Tests/**" + +concurrency: + group: lint-${{ github.head_ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + lint: + name: lint + runs-on: macos-15 + steps: + - uses: actions/checkout@v6 + with: + fetch-depth: 0 + - uses: jdx/mise-action@v3 + - name: Run + run: mise run lint + + discover-typos: + name: discover-typos + runs-on: macos-15 + env: + DEVELOPER_DIR: /Applications/Xcode_16.4.app/Contents/Developer + steps: + - uses: actions/checkout@v6 + + - name: Set up Python environment + run: | + python3 -m venv .venv + source .venv/bin/activate + pip install --upgrade pip + pip install codespell + + - name: Discover typos + run: | + source .venv/bin/activate + codespell --ignore-words-list="hart,inout,msdos,sur" --skip="./.build/*,./.git/*" \ No newline at end of file