Skip to content

feat: add maxBufferedPromises option to avoid oom #7

feat: add maxBufferedPromises option to avoid oom

feat: add maxBufferedPromises option to avoid oom #7

Workflow file for this run

name: ci
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: deno fmt --check
- run: deno lint
- run: deno doc --lint ./mod.ts
- run: deno test --coverage
- run: deno coverage --lcov > coverage.lcov
- uses: codecov/codecov-action@v4
with:
file: ./coverage.lcov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
test-build:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: deno run -A ./scripts/prepare_release.ts
release:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [test]
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- uses: actions/setup-node@v4
with:
node-version: 20
# this is a hack for @semantic-release/npm verifyConditions as it expects a package.json to exist already but it's only generated during the prepare step
- run: |
mkdir npm && echo '{ "name": "parallelize-generator-promises" }' > npm/package.json
- run: npx -p @semantic-release/changelog -p @semantic-release/exec -p @semantic-release/git -p semantic-release semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: deno publish