Skip to content

Commit 79e9aa0

Browse files
Run CI on both SDK versions
1 parent 031b59c commit 79e9aa0

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

.github/workflows/integrate.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,24 @@ jobs:
5050
run: |
5151
npm update --no-save
5252
npm update --save-dev --no-save
53-
- name: Unit tests
53+
- name: Unit tests (AWS SDK v2)
5454
# Some tests depend on TTY support, which is missing in GA runner
5555
# Workaround taken from https://github.com/actions/runner/issues/241#issuecomment-577360161
5656
run: script -e -c "npm test -- -b"
57-
- name: Packaging tests
57+
env:
58+
SLS_AWS_SDK_V3: '0'
59+
- name: Unit tests (AWS SDK v3)
60+
run: script -e -c "npm test -- -b"
61+
env:
62+
SLS_AWS_SDK_V3: '1'
63+
- name: Packaging tests (AWS SDK v2)
5864
run: npm run integration-test-run-package
65+
env:
66+
SLS_AWS_SDK_V3: '0'
67+
- name: Packaging tests (AWS SDK v3)
68+
run: npm run integration-test-run-package
69+
env:
70+
SLS_AWS_SDK_V3: '1'
5971

6072
windowsNode16:
6173
name: '[Windows] Node 16: Unit tests'

.github/workflows/validate.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,24 @@ jobs:
6363
then
6464
npx dump-release-notes-from-cc-changelog $NEW_VERSION
6565
fi
66-
- name: Unit tests
66+
- name: Unit tests (AWS SDK v2)
6767
# Some tests depend on TTY support, which is missing in GA runner
6868
# Workaround taken from https://github.com/actions/runner/issues/241#issuecomment-577360161
6969
run: script -e -c "npm test -- -b"
70-
- name: Packaging tests
70+
env:
71+
SLS_AWS_SDK_V3: '0'
72+
- name: Unit tests (AWS SDK v3)
73+
run: script -e -c "npm test -- -b"
74+
env:
75+
SLS_AWS_SDK_V3: '1'
76+
- name: Packaging tests (AWS SDK v2)
77+
run: npm run integration-test-run-package
78+
env:
79+
SLS_AWS_SDK_V3: '0'
80+
- name: Packaging tests (AWS SDK v3)
7181
run: npm run integration-test-run-package
82+
env:
83+
SLS_AWS_SDK_V3: '1'
7284

7385
windowsNode16:
7486
name: '[Windows] Node 16: Unit tests'

0 commit comments

Comments
 (0)