Skip to content

add build workflow

add build workflow #1

Workflow file for this run

name: Verification Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
# docker run --rm -it -u "$(id -u):$(id -g)" -v "${PWD}:/xk6" grafana/xk6 build v0.43.1 \
# --with github.com/mostafa/xk6-kafka@v0.17.0
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build k6
container:

Check failure on line 23 in .github/workflows/Build.yaml

View workflow run for this annotation

GitHub Actions / Verification Build

Invalid workflow file

The workflow is not valid. .github/workflows/Build.yaml (Line: 23, Col: 7): Unexpected value 'container' .github/workflows/Build.yaml (Line: 25, Col: 7): Unexpected value 'volumes'
image: grafana/xk6
volumes:
- ${pwd}:/xk6
options: --rm -it -u "$(id -u):$(id -g)" -v "${PWD}:/xk6"
run: build --with github.com/LeonAdato/xk6-output-statsd
- name: build k6 v2
uses: addnab/docker-run-action@v3
with:
image: grafana/xk6
options: --rm -it -u "$(id -u):$(id -g)" -v "${PWD}:/xk6"
run: build --with github.com/LeonAdato/xk6-output-statsd