Skip to content

Commit 3d4d357

Browse files
committed
rework integration test workflow
We were previously running integration tests twice: once on the "current" version of Go and once on the previous version. We weren't testing with multiple TinyGo versions. It's probably too much overhead to build and test 2x2 versions, so let's just use the latest Go and TinyGo versions. Now that we also build the integration tests in the "Build Examples" action, we'll at least catch build failures easily.
1 parent 55a36ce commit 3d4d357

File tree

2 files changed

+7
-33
lines changed

2 files changed

+7
-33
lines changed

.github/actions/bootstrap-integration-test/action.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,3 @@ runs:
1515
tar -xzf viceroy_v0.4.0_linux-amd64.tar.gz --directory $HOME/bin
1616
echo "$HOME/bin" >> $GITHUB_PATH
1717
shell: "bash"
18-
- run: |
19-
echo "Install TinyGo 0.27.0..."
20-
wget https://github.com/tinygo-org/tinygo/releases/download/v0.27.0/tinygo_0.27.0_amd64.deb
21-
echo "030336ec61c87083b1a933bea2bc3a139e2921f4317945fc03eea965d3963a72b28d9592dfb40e64df2620e9010caadda08205c85a98f76c49bcd1569fe8ddc3 tinygo_0.27.0_amd64.deb" | sha512sum --check
22-
sudo dpkg -i tinygo_0.27.0_amd64.deb
23-
echo "/usr/local/tinygo/bin" >> $GITHUB_PATH
24-
shell: "bash"

.github/workflows/integration-tests.yml

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,29 @@
11
name: Compute TinyGo SDK Test
22
on: [push]
33
jobs:
4-
sdktest-go-latest:
4+
sdktest:
55
runs-on: ubuntu-latest
66
concurrency:
77
group: SdkTestJob
88
cancel-in-progress: true
99
steps:
1010
- name: Checkout fastly/compute-sdk-go
1111
uses: actions/checkout@v2
12-
- uses: ./.github/actions/bootstrap-integration-test
13-
- name: Check our bootstrap dependencies were installed correctly, and in our $PATH
14-
run: |
15-
fastly version
16-
viceroy --version
17-
tinygo version
1812
- name: Install Go
1913
uses: actions/setup-go@v2
2014
with:
21-
go-version: '1.19'
22-
- name: compute-sdk-go Integration Tests Job
23-
uses: ./.github/actions/compute-sdk-test
24-
id: sdktest
15+
go-version: '1.20'
16+
- name: Install TinyGo
17+
uses: ./.github/actions/install-tinygo
2518
with:
26-
config: './_integration_tests/sdk-test-config.json'
27-
sdktest-go-previous:
28-
runs-on: ubuntu-latest
29-
needs: [sdktest-go-latest]
30-
concurrency:
31-
group: SdkTestJob
32-
cancel-in-progress: true
33-
steps:
34-
- name: Checkout fastly/compute-sdk-go
35-
uses: actions/checkout@v2
19+
tinygo-version: '0.27.0'
3620
- uses: ./.github/actions/bootstrap-integration-test
3721
- name: Check our bootstrap dependencies were installed correctly, and in our $PATH
3822
run: |
23+
go version
24+
tinygo version
3925
fastly version
4026
viceroy --version
41-
tinygo version
42-
- name: Install Go
43-
uses: actions/setup-go@v2
44-
with:
45-
go-version: '1.18'
4627
- name: compute-sdk-go Integration Tests Job
4728
uses: ./.github/actions/compute-sdk-test
4829
id: sdktest

0 commit comments

Comments
 (0)