Skip to content

Update dependency @actions/artifact to v2.1.11 #68

Update dependency @actions/artifact to v2.1.11

Update dependency @actions/artifact to v2.1.11 #68

Workflow file for this run

name: ts
on:
pull_request:
paths:
- src/**
- tests/**
- '*.json'
- '*.yaml'
- .github/workflows/ts.yaml
push:
branches:
- main
paths:
- src/**
- tests/**
- '*.json'
- '*.yaml'
- .github/workflows/ts.yaml
jobs:
test:
strategy:
matrix:
shard-id: [1, 2]
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
actions: read
contents: read
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 20
- run: corepack enable pnpm
- run: pnpm i
- run: pnpm build
- name: Run int128/parallel-test-action
id: parallel-test
uses: ./
with:
test-files: 'tests/**/*.test.ts'
test-report-branch: ${{ github.event.pull_request.head.ref || github.ref_name }}
test-report-artifact-name-prefix: test-report-
shard-count: 2
token: ${{ secrets.GITHUB_TOKEN }}
- run: cat "$SHARD_FILENAME"
env:
SHARD_FILENAME: ${{ steps.parallel-test.outputs.shards-directory }}/${{ matrix.shard-id}}
- run: pnpm run test
- uses: actions/upload-artifact@84480863f228bb9747b473957fcc9e309aa96097 # v4.4.2
with:
name: test-report-${{ matrix.shard-id }}
path: junit.xml
generate:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 20
- run: corepack enable pnpm
- run: pnpm i
- run: pnpm lint --fix
- run: pnpm format
- uses: int128/update-generated-files-action@757376506709ed3d87f14a80ca28a98736d52236 # v2.55.0