From 003f7628a0cdf895192a9ea1ba725d8036f46391 Mon Sep 17 00:00:00 2001 From: Oleg Bespalov Date: Fri, 9 Feb 2024 15:17:22 +0100 Subject: [PATCH] Minimum CI --- .github/workflows/all.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/all.yml diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml new file mode 100644 index 0000000..3241c4a --- /dev/null +++ b/.github/workflows/all.yml @@ -0,0 +1,35 @@ +name: Checks +on: + push: + branches: + - main + tags: + - v* + pull_request: + +defaults: + run: + shell: bash + +jobs: + test-build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: 1.21.x + - name: Check build + run: | + go version + pwd && ls -l + + go install go.k6.io/xk6/cmd/xk6@master + MODULE_NAME=`go list -m` + + GOPRIVATE="go.k6.io/k6" xk6 build \ + --output ./k6ext \ + --with $MODULE_NAME="." + ./k6ext version