dhis2: Add paging examples and default async:false in tracker.import
#4102
This file contains hidden or 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 | |
| # Runs when a pull request is created or its head is updated | |
| # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request | |
| on: pull_request | |
| jobs: | |
| build: | |
| name: 'Build and Test' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22.20.0, 24.14.0] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: pnpm/action-setup@v4 | |
| - name: Setup node ${{ matrix.node-version }} | |
| # https://github.com/actions/setup-node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Setup pnpm | |
| run: pnpm install --frozen-lockfile | |
| - name: Validate configuration schemas | |
| run: pnpm validate:schemas | |
| - name: Build | |
| run: pnpm run build | |
| - name: Git Status | |
| run: pnpm run test:git | |
| - name: Unit Tests | |
| run: pnpm run test | |
| next: | |
| name: 'Publish @next' | |
| runs-on: ubuntu-latest | |
| needs: build | |
| strategy: | |
| matrix: | |
| node-version: [22.20.0] | |
| # if: github.event.pull_request.draft == false | |
| if: false | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: pnpm/action-setup@v4 | |
| - name: Setup node ${{ matrix.node-version }} | |
| # https://github.com/actions/setup-node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Setup pnpm | |
| run: pnpm install --frozen-lockfile | |
| - name: Setup NPM config | |
| run: pnpm config set "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: git config | |
| run: git config user.name $GIT_USER | |
| env: | |
| GIT_USER: ${{ secrets.GIT_USER }} | |
| - run: git config user.email $GIT_EMAIL | |
| env: | |
| GIT_EMAIL: ${{ secrets.GIT_EMAIL }} | |
| - name: Do pre-release | |
| run: pnpm prerelease |