Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(sdk): running the sdk spec tests action before the build #3850

Closed
wants to merge 87 commits into from
Closed
Changes from 4 commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
d72bffa
try local run
tsuf239 Aug 17, 2023
24dc95d
not installing globally
tsuf239 Aug 17, 2023
ac7151b
without external install
tsuf239 Aug 17, 2023
469c96e
last fix
tsuf239 Aug 17, 2023
6558c2d
try
tsuf239 Aug 22, 2023
d58942e
another try
tsuf239 Aug 22, 2023
63699b0
re-order
tsuf239 Aug 22, 2023
af0f1a3
fix
tsuf239 Aug 23, 2023
3c0440c
Merge branch 'main' into tsuf/sdk-spec-tests-prior-to-build
tsuf239 Aug 29, 2023
34a3850
test changes with artifacts
tsuf239 Aug 29, 2023
b7aa4bb
wait until the build ends
tsuf239 Aug 29, 2023
15f9464
fix
tsuf239 Aug 29, 2023
d7b8f57
fix double build
tsuf239 Aug 31, 2023
05441fa
try installing npm?
tsuf239 Aug 31, 2023
f34f8b1
try installing npm
tsuf239 Aug 31, 2023
423650d
installing npm?
tsuf239 Aug 31, 2023
8fb97fd
Merge branch 'tsuf/sdk-spec-tests-prior-to-build' of https://github.c…
tsuf239 Aug 31, 2023
fab20af
Revert "try installing npm?"
tsuf239 Aug 31, 2023
50bbaf1
investigating
tsuf239 Sep 11, 2023
76a6d76
test
tsuf239 Sep 11, 2023
0fcd7fe
not installing dependencies
tsuf239 Sep 11, 2023
5cea6cc
with dependencies
tsuf239 Sep 11, 2023
8bfd931
without dependencies
tsuf239 Sep 11, 2023
59cb253
splitting the task
tsuf239 Sep 11, 2023
a660c30
Merge branch 'main' into tsuf/sdk-spec-tests-prior-to-build
tsuf239 Sep 11, 2023
478d982
try
tsuf239 Sep 11, 2023
f874412
try again
tsuf239 Sep 11, 2023
f4c1b80
try only winglang
tsuf239 Sep 11, 2023
3c6434f
twice
tsuf239 Sep 11, 2023
6fc3cd8
try installing dist once
tsuf239 Sep 11, 2023
b2fcced
Merge branch 'main' into tsuf/sdk-spec-tests-prior-to-build
monadabot Sep 11, 2023
0d9d691
chore: self mutation (build.diff)
monadabot Sep 11, 2023
bf82c05
Merge branch 'tsuf/sdk-spec-tests-prior-to-build' of https://github.c…
tsuf239 Sep 11, 2023
d956838
twice again
tsuf239 Sep 11, 2023
bf8f8d1
another test
tsuf239 Sep 12, 2023
45f63e7
try
tsuf239 Sep 12, 2023
af142b1
try
tsuf239 Sep 12, 2023
9768f88
test
tsuf239 Sep 12, 2023
7edf9e5
test 2
tsuf239 Sep 12, 2023
b8d5ea2
test
tsuf239 Sep 12, 2023
fa573d3
boolean
tsuf239 Sep 12, 2023
44bdde6
strings
tsuf239 Sep 12, 2023
e7fb2b7
try
tsuf239 Sep 12, 2023
b742532
tryy
tsuf239 Sep 12, 2023
bce7946
t
tsuf239 Sep 12, 2023
c737c30
ready
tsuf239 Sep 12, 2023
89db8cd
Merge branch 'main' into tsuf/sdk-spec-tests-prior-to-build
monadabot Sep 12, 2023
89e209c
chore: self mutation (build.diff)
monadabot Sep 12, 2023
ad374eb
adding more action
tsuf239 Sep 12, 2023
a512180
Merge branch 'tsuf/sdk-spec-tests-prior-to-build' of https://github.c…
tsuf239 Sep 12, 2023
37c1001
try
tsuf239 Sep 12, 2023
0663f87
fix
tsuf239 Sep 12, 2023
005fe6f
try again
tsuf239 Sep 12, 2023
db0dec4
test
tsuf239 Sep 12, 2023
734a8a5
try again
tsuf239 Sep 12, 2023
6371b90
try again
tsuf239 Sep 12, 2023
ab440fb
Merge branch 'main' into tsuf/sdk-spec-tests-prior-to-build
tsuf239 Sep 12, 2023
cafc425
join array
tsuf239 Sep 12, 2023
2f03aa3
another one
tsuf239 Sep 12, 2023
041f32b
bold
tsuf239 Sep 12, 2023
26c8130
change to fail
tsuf239 Sep 12, 2023
bcafbc4
try
tsuf239 Sep 12, 2023
f16c74c
try again
tsuf239 Sep 12, 2023
de14ca1
try
tsuf239 Sep 12, 2023
597b815
try
tsuf239 Sep 12, 2023
188de5a
try
tsuf239 Sep 12, 2023
22b912b
test
tsuf239 Sep 14, 2023
d5ef557
Merge branch 'main' into tsuf/sdk-spec-tests-prior-to-build
tsuf239 Sep 14, 2023
320a17a
installing globaly
tsuf239 Sep 14, 2023
6535ebe
try
tsuf239 Sep 14, 2023
9d116c7
1
tsuf239 Sep 14, 2023
420d3fa
try
tsuf239 Sep 14, 2023
ee41a92
try
tsuf239 Sep 14, 2023
b59aa55
try
tsuf239 Sep 14, 2023
6221094
try
tsuf239 Sep 14, 2023
955fd02
try
tsuf239 Sep 14, 2023
8c57304
try
tsuf239 Sep 14, 2023
35eab6d
try
tsuf239 Sep 14, 2023
a2d58ed
try
tsuf239 Sep 14, 2023
0e4242f
try
tsuf239 Sep 14, 2023
e552ad3
try
tsuf239 Sep 14, 2023
c40693b
try
tsuf239 Sep 14, 2023
ffa443a
try
tsuf239 Sep 14, 2023
284cbea
try
tsuf239 Sep 14, 2023
b51b0d2
try
tsuf239 Sep 14, 2023
25e5a87
tt
tsuf239 Sep 14, 2023
33c4611
try
tsuf239 Sep 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 44 additions & 3 deletions .github/workflows/tf-aws-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ on:
release:
types:
- published
push:
branches:
- main
MarkMcCulloh marked this conversation as resolved.
Show resolved Hide resolved
workflow_dispatch: {}
tsuf239 marked this conversation as resolved.
Show resolved Hide resolved

env:
AWS_REGION: "us-east-1"
RUST_VERSION: "1.67.1"
NODE_VERSION: "18.16.0"
PNPM_VERSION: "8.6.3"

jobs:
setup:
Expand Down Expand Up @@ -42,15 +48,43 @@ jobs:
- name: Setup Node.js v18
uses: actions/setup-node@v3
with:
node-version: 18
node-version: ${{ env.NODE_VERSION }}
########################### install a local wing version ###############
- name: Setup pnpm
if: ${{github.event_name == 'push'}}
uses: pnpm/[email protected]
with:
version: ${{ env.PNPM_VERSION }}

- name: Install Rust
if: ${{github.event_name == 'push'}}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_VERSION }}
targets: |
x86_64-unknown-linux-gnu
wasm32-wasi
components: rustfmt,clippy,rust-std

- name: Setup Cargo Cache
if: ${{github.event_name == 'push'}}
uses: Swatinem/rust-cache@v2

- name: Install Dependencies
if: ${{github.event_name == 'push'}}
run: pnpm install --frozen-lockfile

########################################################################
- name: Install winglang globally
if: ${{github.event_name != 'push'}}
uses: nick-fields/retry@v2
with:
max_attempts: 3
retry_on: error
timeout_minutes: 5
command: npm install -g winglang
tsuf239 marked this conversation as resolved.
Show resolved Hide resolved
- name: Installing external js modules
if: ${{github.event_name != 'push'}}
run: |
cd examples/tests/sdk_tests
npm install
Expand All @@ -68,8 +102,15 @@ jobs:
with:
max_attempts: 3
retry_on: error
timeout_minutes: 20
command: wing test -t tf-aws ${{ matrix.test.directory }}/*.w
timeout_minutes: 30
command: |
if ${{github.event_name == 'push'}}
then
pnpm wing test -t tf-aws ${{ matrix.test.directory }}/*.w
else
wing test -t tf-aws ${{ matrix.test.directory }}/*.w
fi

- name: Output Terraform log
if: failure()
run: cat ${{ runner.workspace }}/terraform.log
Loading