|
38 | 38 | - name: Spellcheck
|
39 | 39 | run: npm run check:spelling
|
40 | 40 |
|
| 41 | + checkForCommonlyIgnoredFiles: |
| 42 | + name: Check for commonly ignored files |
| 43 | + runs-on: ubuntu-latest |
| 44 | + steps: |
| 45 | + - name: Checkout repo |
| 46 | + uses: actions/checkout@v2 |
| 47 | + |
| 48 | + - name: Check if commit contains files that should be ignored |
| 49 | + run: | |
| 50 | + git clone --depth 1 https://github.com/github/gitignore.git && |
| 51 | + cat gitignore/Node.gitignore $(find gitignore/Global -name "*.gitignore" | grep -v ModelSim) > all.gitignore && |
| 52 | + if [[ "$(git ls-files -iX all.gitignore)" != "" ]]; then |
| 53 | + echo "::error::Please remove these files:" |
| 54 | + git ls-files -iX all.gitignore |
| 55 | + exit 1 |
| 56 | + fi |
| 57 | +
|
41 | 58 | integrationTests:
|
42 | 59 | name: Run integration tests
|
43 | 60 | runs-on: ubuntu-latest
|
@@ -187,7 +204,7 @@ jobs:
|
187 | 204 | github.event_name == 'push' &&
|
188 | 205 | github.repository == 'graphql/graphql-js' &&
|
189 | 206 | github.ref == 'refs/heads/master'
|
190 |
| - needs: [test, fuzz, lint, integrationTests] |
| 207 | + needs: [test, fuzz, lint, checkForCommonlyIgnoredFiles, integrationTests] |
191 | 208 | steps:
|
192 | 209 | - name: Checkout repo
|
193 | 210 | uses: actions/checkout@v2
|
@@ -223,7 +240,7 @@ jobs:
|
223 | 240 | github.event_name == 'push' &&
|
224 | 241 | github.repository == 'graphql/graphql-js' &&
|
225 | 242 | github.ref == 'refs/heads/master'
|
226 |
| - needs: [test, fuzz, lint, integrationTests] |
| 243 | + needs: [test, fuzz, lint, checkForCommonlyIgnoredFiles, integrationTests] |
227 | 244 | steps:
|
228 | 245 | - name: Checkout repo
|
229 | 246 | uses: actions/checkout@v2
|
|
0 commit comments