Merge pull request #4 from kelseyaubrecht/ci/add_workflow #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test xk6-webtransport | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Lint and build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.22 | |
- name: Run prettier | |
uses: creyD/[email protected] | |
with: | |
dry: True | |
- name: Lint code issues | |
uses: golangci/[email protected] | |
with: | |
skip-pkg-cache: true | |
- name: Build k6 with xk6-webtransport | |
run: | | |
go install go.k6.io/xk6/cmd/xk6@latest | |
xk6 build --with github.com/kelseyaubrecht/xk6-webtransport@latest | |