Skip to content

Commit

Permalink
ci: move pre-commit into workflows/main.yml
Browse files Browse the repository at this point in the history
* to streamline the CI pipeline
  • Loading branch information
dafyddj committed Mar 25, 2024
1 parent 7fadced commit 1685afa
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@
"extends": [
"config:recommended",
":enablePreCommit",
"helpers:pinGitHubActionDigestsToSemver",
":semanticCommitScopeDisabled",
":semanticPrefixChore",
"helpers:pinGitHubActionDigestsToSemver",
"regexManagers:githubActionsVersions",
],
"packageRules": [
{
"matchPackageNames": ["python/cpython"],
"separateMinorPatch": true,
},
],
}
16 changes: 15 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ on:
- workflow_dispatch

jobs:
pre-commit:
name: Run `pre-commit`
runs-on: ubuntu-latest
env:
# renovate: datasource=github-tags depName=python/cpython
PYTHON_VERSION: 3.12.2
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
gsv:
name: Get Salt versions
runs-on: ubuntu-latest
Expand All @@ -17,7 +29,9 @@ jobs:
uses: dafyddj/get-salt-versions@1fcbea0eee4404137e534d66f3c22846f7c2a7ec # v3.0.0
test:
name: Run URL tests
needs: gsv
needs:
- gsv
- pre-commit
runs-on: windows-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down

0 comments on commit 1685afa

Please sign in to comment.