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
12 changes: 6 additions & 6 deletions .github/workflows/it-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: "IT Test - default inputs values should work fine on this repo"
runs-on: github-ubuntu-latest-s
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Given the gh-action is used with default values
id: test-data
uses: ./
Expand All @@ -24,7 +24,7 @@ jobs:
name: "IT Test - custom extra-args should be honored"
runs-on: github-ubuntu-latest-s
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Given the gh-action is used with extra-args=--help
id: test-data
uses: ./
Expand All @@ -41,7 +41,7 @@ jobs:
name: "IT Test - output status should be 1 given pre-commit detected some issue"
runs-on: github-ubuntu-latest-s
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Given a pre-commit-config not correctly respected
id: test-data
uses: ./
Expand All @@ -60,7 +60,7 @@ jobs:
name: "IT Test - output status should be 0 given pre-commit detected no issue"
runs-on: github-ubuntu-latest-s
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Given a pre-commit-config correctly respected
id: test-data
uses: ./
Expand All @@ -79,7 +79,7 @@ jobs:
name: "IT Test - output logs should contain failures given pre-commit detected some issue"
runs-on: github-ubuntu-latest-s
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Given a pre-commit-config not correctly respected
id: test-data
uses: ./
Expand All @@ -98,7 +98,7 @@ jobs:
name: "IT Test - output logs should contain no failure given pre-commit detected no issue"
runs-on: github-ubuntu-latest-s
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Given a pre-commit-config correctly respected
id: test-data
uses: ./
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
name: "pre-commit"
runs-on: github-ubuntu-latest-s
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: ./
with:
extra-args: >
Expand Down
10 changes: 5 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@ runs:
echo "CONFIG_PATH=$CONFIG_PATH" >> "$GITHUB_ENV"
echo "EXTRA_ARGS=$EXTRA_ARGS" >> "$GITHUB_ENV"
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Fetch origin
run: git fetch origin # avoid unknown revision or path not in the working tree when
# using --from-ref --to-ref feature of pre-commit
shell: bash
- id: setup_python
name: Setup python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.10'
python-version: '3.13'
- name: Setup pre-commit
run: |
python -m pip install --upgrade pip
python -m pip install --quiet pre-commit==3.7.1
shell: bash
- uses: actions/cache/restore@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1
- uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
id: restore-cache
with:
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles(env.CONFIG_PATH) }}
Expand All @@ -65,7 +65,7 @@ runs:
run: |
pre-commit install-hooks --config="$CONFIG_PATH"
shell: bash
- uses: actions/cache/save@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1
- uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
if: steps.restore-cache.outputs.cache-hit != 'true' &&
github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
with:
Expand Down