|
8 | 8 | workflow_dispatch: |
9 | 9 |
|
10 | 10 | jobs: |
| 11 | + pre-commit-check: |
| 12 | + runs-on: ubuntu-latest |
| 13 | + steps: |
| 14 | + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 15 | + - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 |
| 16 | + - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 |
| 17 | + |
11 | 18 | test-scripts: |
12 | 19 | name: Test Scripts |
13 | 20 | runs-on: ubuntu-latest |
| 21 | + needs: pre-commit-check |
14 | 22 | steps: |
15 | 23 | - name: Checkout repository |
16 | | - uses: actions/checkout@v4 |
| 24 | + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
17 | 25 |
|
18 | 26 | - name: Run unit tests |
19 | 27 | run: ./test/run-tests.sh |
|
42 | 50 | test-action-check-mode: |
43 | 51 | name: Test Action (Check Mode) |
44 | 52 | runs-on: ubuntu-latest |
| 53 | + needs: pre-commit-check |
45 | 54 | steps: |
46 | 55 | - name: Checkout repository |
47 | | - uses: actions/checkout@v4 |
| 56 | + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
48 | 57 |
|
49 | 58 | - name: Create test config |
50 | 59 | run: | |
|
84 | 93 | test-action-update-mode: |
85 | 94 | name: Test Action (Update Mode) |
86 | 95 | runs-on: ubuntu-latest |
| 96 | + needs: pre-commit-check |
87 | 97 | steps: |
88 | 98 | - name: Checkout repository |
89 | | - uses: actions/checkout@v4 |
| 99 | + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
90 | 100 |
|
91 | 101 | - name: Create test config |
92 | 102 | run: | |
@@ -122,12 +132,13 @@ jobs: |
122 | 132 | test-action-with-pr: |
123 | 133 | name: Test Action (PR Creation) |
124 | 134 | runs-on: ubuntu-latest |
| 135 | + needs: pre-commit-check |
125 | 136 | permissions: |
126 | 137 | contents: write |
127 | 138 | pull-requests: write |
128 | 139 | steps: |
129 | 140 | - name: Checkout repository |
130 | | - uses: actions/checkout@v4 |
| 141 | + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
131 | 142 |
|
132 | 143 | - name: Create test config |
133 | 144 | run: | |
@@ -170,9 +181,10 @@ jobs: |
170 | 181 | test-fixtures: |
171 | 182 | name: Test with Fixtures |
172 | 183 | runs-on: ubuntu-latest |
| 184 | + needs: pre-commit-check |
173 | 185 | steps: |
174 | 186 | - name: Checkout repository |
175 | | - uses: actions/checkout@v4 |
| 187 | + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
176 | 188 |
|
177 | 189 | - name: Test with fixture files |
178 | 190 | uses: ./ |
|
0 commit comments