chore: Debug nock issues #15660
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: build | |
on: | |
pull_request: ~ | |
push: | |
branches: ['main'] | |
tags: ['v*'] | |
paths-ignore: | |
- 'docs/**' | |
schedule: | |
- cron: '0 1 * * *' | |
workflow_dispatch: | |
inputs: | |
canary-release: | |
description: 'Release canary version (skips tests and checks)' | |
type: boolean | |
required: false | |
default: false | |
jobs: | |
tests: | |
if: inputs.canary-release == false | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [18, 20, 22] | |
steps: | |
- uses: actions/checkout@v4 | |
- run: git fetch --depth=1 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- run: yarn install --frozen-lockfile --ignore-engines | |
- run: yarn test:unit | |
env: | |
SANDBOX_TOKEN: ${{ secrets.API_HUB_SANDBOX_TOKEN }} | |
# - run: yarn test:integration | |
# - run: yarn test:self | |
# - run: yarn test:build-packages | |
# - run: yarn test:type | |
- if: ${{ github.event_name != 'pull_request' && (failure() || cancelled()) }} | |
name: Slack Notify | |
uses: rtCamp/action-slack-notify@v2.3.0 | |
env: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
SLACK_USERNAME: SDK Pipeline Bot | |
SLACK_TITLE: Build tests ${{ job.status }} (${{ matrix.version }}) | |
SLACK_MESSAGE: 'Test failed' | |
MSG_MINIMAL: event,actions url | |
SLACK_COLOR: ${{ job.status }} | |
SLACK_MSG_AUTHOR: ' ' | |
SLACK_ICON: https://sap.github.io/cloud-sdk/img/logo.png |