Fix missing headers for fetch #279
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: Node.js Continuous Integration Smoke Test | |
on: | |
pull_request: | |
branches: [master] | |
jobs: | |
smoke-test: | |
name: Run smoke test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout AWS XRay SDK Node Repository @ default branch latest | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
# Use npm pack to bundle individual packages into their final distribution tarball form | |
# Then aggregate all of those tarballs in the full_sdk package, to be used by smoke test | |
- name: Pack SDK packages | |
id: package | |
run: | | |
npm install typescript | |
core_tar=$(cd packages/core && npm pack | tail -1) | |
express_tar=$(cd packages/express && npm pack | tail -1) | |
mysql_tar=$(cd packages/mysql && npm pack | tail -1) | |
postgres_tar=$(cd packages/postgres && npm pack | tail -1) | |
cd packages/full_sdk | |
npm install ../core/$core_tar | |
npm install ../express/$express_tar | |
npm install ../mysql/$mysql_tar | |
npm install ../postgres/$postgres_tar | |
full_tar=$(npm pack | tail -1) | |
echo "::set-output name=full_sdk::$full_tar" | |
# Manually install the locally bundled packages first, then pull in other test dependencies from NPM | |
# Remove the entire source code directory to force smoke test to depend on packed tarball | |
- name: Run smoke test | |
run: | | |
cd smoke_test | |
npm install ../packages/full_sdk/${{ steps.package.outputs.full_sdk }} | |
npm install | |
rm -rf ../packages/ | |
npm run test-smoke |