Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sambacha/parallelish
parallelish; run a GitHub Action jobs multiple times in parallel in a single pipeline
https://github.com/sambacha/parallelish
actions github-actions
Last synced: 23 days ago
JSON representation
parallelish; run a GitHub Action jobs multiple times in parallel in a single pipeline
- Host: GitHub
- URL: https://github.com/sambacha/parallelish
- Owner: sambacha
- License: other
- Created: 2022-05-19T18:37:33.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-22T13:49:19.000Z (about 2 years ago)
- Last Synced: 2024-10-04T18:59:23.656Z (about 1 month ago)
- Topics: actions, github-actions
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# `parallelish`
> parallel `păr′ə-lĕl` -- ish
Use parallel to run a job multiple times in parallel in a single pipeline.
Multiple runners must exist, or a single runner must be configured to run multiple jobs concurrently.
Parallel jobs are named sequentially from job_name 1/N to job_name N/N.
## Usage
> NodeJS is NOT Required
```yaml
jobs:
pipeline:
name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}strategy:
fail-fast: false
matrix:
node-version: ['16.x']
os: ['ubuntu-latest']
name: Distributed Tasks
steps:
- uses: actions/checkout@v3- name: Run bash commands in parallel
uses: sambacha/parallelish@v1
id: tasks
with:
cmd1: echo $BASH_VERSION; date;
cmd2: echo $BASH_VERSION; date;
``````yaml
test:
stage: test
parallel: 3
script:
- echo "Node index - ${CI_NODE_INDEX}. Total amount - ${CI_NODE_TOTAL}"
- cmd1: time cargo nextest run --workspace --partition count:${CI_NODE_INDEX}/${CI_NODE_TOTAL}
- cmd2: time cargo nextest run --workspace --partition count:${CI_NODE_INDEX}/${CI_NODE_TOTAL}
```