Skip to content

ci: add workflow to test k6 installation across platforms #5767

ci: add workflow to test k6 installation across platforms

ci: add workflow to test k6 installation across platforms #5767

Workflow file for this run

name: Web Platform Tests
on:
workflow_dispatch:
pull_request:
paths-ignore:
- 'docs/**'
- 'release notes/**'
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Resolve Go versions
id: go_versions
uses: ./.github/actions/go-versions
- name: Install Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with:
go-version: ${{ steps.go_versions.outputs.current }}
check-latest: true
# TODO: combine WebPlatform tests checkout & patch into the single step
- name: Run Streams Tests
run: |
set -x
cd internal/js/modules/k6/experimental/streams/tests
sh checkout.sh
go test -race ../...
- name: Run Webcrypto Tests
run: |
set -x
cd internal/js/modules/k6/webcrypto/tests
sh checkout.sh
go test -race ./...