Sample for message passing docs #928
Workflow file for this run
This file contains 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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
test-individual: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
node: [ 16, 18, 20 ] | |
project: | |
[ | |
activities-examples, | |
mutex, | |
nestjs-exchange-rates, | |
timer-examples | |
] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
# Comment out cache line when testing with act: | |
# (Test command is: act --platform ubuntu-latest=lucasalt/act_base:latest) | |
cache: 'npm' | |
- run: yarn | |
working-directory: ${{ matrix.project }} | |
- run: npm run build | |
working-directory: ${{ matrix.project }} | |
- run: npm test | |
working-directory: ${{ matrix.project }} | |
lint-individual: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
project: | |
[ | |
activities-cancellation-heartbeating, | |
activities-dependency-injection, | |
activities-examples, | |
child-workflows, | |
continue-as-new, | |
cron-workflows, | |
custom-logger, | |
dsl-interpreter, | |
ejson, | |
encryption, | |
expense, | |
fetch-esm, | |
food-delivery, | |
grpc-calls, | |
hello-world, | |
hello-world-js, | |
hello-world-mtls, | |
interceptors-opentelemetry, | |
monorepo-folders, | |
mutex, | |
nestjs-exchange-rates, | |
nextjs-ecommerce-oneclick, | |
patching-api, | |
production, | |
protobufs, | |
query-subscriptions, | |
saga, | |
schedules, | |
search-attributes, | |
signals-queries, | |
sinks, | |
snippets, | |
state, | |
timer-examples, | |
timer-progress, | |
vscode-debugger, | |
worker-specific-task-queues | |
] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
# Comment out cache line when testing with act: | |
# (Test command is: act --platform ubuntu-latest=lucasalt/act_base:latest) | |
cache: 'npm' | |
- run: yarn | |
working-directory: ${{ matrix.project }} | |
- run: npm run build | |
working-directory: ${{ matrix.project }} | |
if: ${{ matrix.project != 'hello-world-js' }} | |
- run: npm run lint | |
working-directory: ${{ matrix.project }} | |
- run: npx prettier . --check | |
working-directory: ${{ matrix.project }} |