Skip to content

Commit

Permalink
ci: add build and lint workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
nadiamoe committed Aug 23, 2024
1 parent ebd92c0 commit 4fc7e0e
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Push/PR

on:
pull_request: {}
push:
branches:
- main

jobs:
test:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- id: version
run: |-
k6version=$(grep -e go.k6.io go.mod | cut -d' ' -f 2)
echo "k6=${k6version}" >> $GITHUB_OUTPUT
- name: xk6
run: |-
docker run --rm -i -u "$(id -u):$(id -g)" -v "${PWD}:/xk6" \
grafana/xk6 build ${{ steps.version.outputs.k6 }} \
--with sm=.
golangci:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
only-new-issues: true

0 comments on commit 4fc7e0e

Please sign in to comment.