Skip to content

Add support for the get_vcpu_ms hostcall #447

Add support for the get_vcpu_ms hostcall

Add support for the get_vcpu_ms hostcall #447

name: Integration Tests
on:
push:
branches:
- main
pull_request:
jobs:
integration-tests:
runs-on: ubuntu-latest
strategy:
matrix:
include:
# Newest supported configuration
- go-version: '1.22' # pairs with TinyGo 0.31.2
tinygo-version: '0.31.2'
wasmtime-version: 'latest'
# Oldest supported configuration
- go-version: '1.21' # pairs with TinyGo 0.29.0
tinygo-version: '0.29.0'
wasmtime-version: '21.0.1' # pairs with TinyGo 0.29.0
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- uses: ./.github/actions/install-tinygo
with:
tinygo-version: ${{ matrix.tinygo-version }}
- name: Setup Fastly CLI
uses: fastly/compute-actions/setup@v7
- name: Install Viceroy ${{ env.VICEROY_VERSION }}
shell: 'bash'
env:
VICEROY_VERSION: 0.10.2
run: |
echo "Install Viceroy ${{ env.VICEROY_VERSION }}..."
wget --no-verbose https://github.com/fastly/Viceroy/releases/download/v${{ env.VICEROY_VERSION }}/viceroy_v${{ env.VICEROY_VERSION }}_linux-amd64.tar.gz
mkdir -p $HOME/bin
tar -xzf viceroy_v${{ env.VICEROY_VERSION }}_linux-amd64.tar.gz --directory $HOME/bin
echo "$HOME/bin" >> $GITHUB_PATH
- name: Set up Wasmtime
uses: bytecodealliance/actions/wasmtime/setup@v1
with:
version: ${{ matrix.wasmtime-version }}
- name: Check our dependencies
run: |
go version
tinygo version
fastly version
viceroy --version
wasmtime --version
- name: Tests - Go
run: go test -v -race -tags="fastlyinternaldebug nofastlyhostcalls" ./...
- name: Tests - TinyGo
env:
GOARCH: wasm
GOOS: wasip1
run: tinygo test -v -tags="fastlyinternaldebug nofastlyhostcalls" ./...
- name: Integration Tests - Go
env:
RUST_LOG: viceroy=info,viceroy-lib=info
GOARCH: wasm
GOOS: wasip1
run: go test -v -tags="fastlyinternaldebug" -exec "viceroy run -C fastly.toml" ./integration_tests/...
- name: Integration Tests - TinyGo
env:
RUST_LOG: viceroy=info,viceroy-lib=info
run: tinygo test -v -tags="fastlyinternaldebug" -target=fastly-compute.json ./integration_tests/...