Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples/gihub-actions: GitHub Actions running 5 jobs in parallel (each tests every 5th file) #49

Open
Tracked by #19
ulises-jeremias opened this issue Feb 16, 2023 · 0 comments

Comments

@ulises-jeremias
Copy link
Member

ulises-jeremias commented Feb 16, 2023

We need to create a document/guide that explains how to improve runtime of jobs that run expensive tasks using parallel executions. One example is the following:

ci.yml

name: CI

on: push

jobs:
tslint:
runs-on: ubuntu-latest
strategy:
matrix:
job: 0, 1, 2, 3, 4
steps:
- uses: actions/checkoutv3
- run: npm ci
- run: |
find . -name '.ts' -not -name '.d.ts' -not -path './node_modules/*' | sort |
awk "NR % $NUM_JOBS == $JOB" | xargs npm run lint --
env:
NUM_JOBS: 5
JOB: ${{ matrix.job }}

package.json

{
"scripts": {
"lint": "eslint . . ."
}
}

┆Issue is synchronized with this Clickup task by Unito

@ulises-jeremias ulises-jeremias moved this to 📋 Backlog in NaNLabs public roadmap Feb 16, 2023
@ulises-jeremias ulises-jeremias moved this from 📋 Backlog to 🔖 Ready in NaNLabs public roadmap Feb 16, 2023
@ulises-jeremias ulises-jeremias assigned AgusPk and unassigned AgusPk Feb 17, 2023
@ulises-jeremias ulises-jeremias changed the title examples/cicd: GitHub Actions running 5 jobs in parallel (each tests every 5th file) examples/gihub-actions: GitHub Actions running 5 jobs in parallel (each tests every 5th file) Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔖 Ready
Development

No branches or pull requests

2 participants