Skip to content

ci: Only run one of each workflow at once for a branch / PR #405

ci: Only run one of each workflow at once for a branch / PR

ci: Only run one of each workflow at once for a branch / PR #405

Workflow file for this run

name: Pull Request JS
on:
pull_request:
paths:
- 'account-compression/sdk/**'
- 'libraries/type-length-value/js/**'
- 'memo/js/**'
- 'name-service/js/**'
- 'single-pool/js/**'
- 'stake-pool/js/**'
- 'token/js/**'
- 'token-group/js/**'
- 'token-lending/js/**'
- 'token-metadata/js/**'
- 'token-swap/js/**'
- 'pnpm-lock.yaml'
- '.github/workflows/pull-request-js.yml'
push:
branches: [master]
paths:
- 'account-compression/sdk/**'
- 'libraries/type-length-value/js/**'
- 'memo/js/**'
- 'single-pool/js/**'
- 'stake-pool/js/**'
- 'token/js/**'
- 'token-group/js/**'
- 'token-lending/js/**'
- 'token-metadata/js/**'
- 'token-swap/js/**'
- 'pnpm-lock.yaml'
- '.github/workflows/pull-request-js.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
js-test:
strategy:
matrix:
package:
[
account-compression,
libraries,
memo,
name-service,
single-pool,
stake-pool,
token,
token-group,
token-lending,
token-metadata,
token-swap,
]
runs-on: ubuntu-latest
env:
NODE_VERSION: 20.5
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/cache@v3
with:
path: ~/.npm
key: node-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
node-
- run: ./ci/js-test-${{ matrix.package }}.sh