-
-
Save ulises-jeremias/a33d9bc64587cdf6ec8ab2560e3f51ce to your computer and use it in GitHub Desktop.
GitHub Actions running 5 tslint jobs in parallel (each tests every 5th file)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push] | |
jobs: | |
tslint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
job: [0, 1, 2, 3, 4] | |
steps: | |
- uses: actions/checkout@v1 | |
- run: | | |
npm ci | |
find . -name '*.ts' -not -name '*.d.ts' -not -path './node_modules/*' | sort | \ | |
awk "NR % $NUM_JOBS == $JOB" | xargs npm run tslint -- | |
env: | |
NUM_JOBS: 5 | |
JOB: ${{ matrix.job }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"tslint": "tslint -p tsconfig.json -t codeFrame" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment