chore(deps): update amannn/action-semantic-pull-request action to v6 #3414
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: sdk/server-node | |
on: | |
push: | |
branches: [main, 'feat/**'] | |
paths-ignore: | |
- '**.md' #Do not need to run CI for markdown changes. | |
pull_request: | |
branches: [main, 'feat/**'] | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build-test-server-node: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# Node versions to run on. | |
version: [18, 22] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.version }} | |
registry-url: 'https://registry.npmjs.org' | |
- id: shared | |
name: Shared CI Steps | |
uses: ./actions/ci | |
with: | |
workspace_name: '@launchdarkly/node-server-sdk' | |
workspace_path: packages/sdk/server-node | |
- name: Install contract test service dependencies | |
run: yarn workspace node-server-sdk-contract-tests install --no-immutable | |
- name: Build the test service | |
run: yarn contract-test-service-build | |
- name: Launch the test service in the background | |
run: yarn contract-test-service 2>&1 & | |
- name: Clone and run contract tests from feat/fdv2 branch | |
run: | | |
mkdir -p /tmp/sdk-test-harness | |
git clone https://github.com/launchdarkly/sdk-test-harness.git /tmp/sdk-test-harness | |
cp ./contract-tests/testharness-suppressions-fdv2.txt /tmp/sdk-test-harness/testharness-suppressions-fdv2.txt | |
cd /tmp/sdk-test-harness | |
git checkout feat/fdv2 | |
go build -o test-harness . | |
./test-harness -url http://localhost:8000 -debug --skip-from=testharness-suppressions-fdv2.txt | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1.0.2 | |
with: | |
test_service_port: 8000 | |
token: ${{ secrets.GITHUB_TOKEN }} | |
extra_params: '--skip-from=./contract-tests/testharness-suppressions.txt -stop-service-at-end' |