Skip to content

Commit 5fc3048

Browse files
authored
Modernize project infrastructure and development setup (#65)
1 parent b67857c commit 5fc3048

File tree

16 files changed

+490
-381
lines changed

16 files changed

+490
-381
lines changed

.devcontainer/devcontainer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "xk6-exec",
3+
"image": "mcr.microsoft.com/devcontainers/base:2-bookworm",
4+
"customizations": {
5+
"vscode": {
6+
"settings": {
7+
"go.lintTool": "golangci-lint",
8+
"go.lintFlags": ["--fast"]
9+
},
10+
"extensions": [
11+
"EditorConfig.EditorConfig",
12+
"esbenp.prettier-vscode",
13+
"github.vscode-github-actions",
14+
"github.vscode-pull-request-github",
15+
"foxundermoon.shell-format"
16+
]
17+
}
18+
},
19+
20+
"features": {
21+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
22+
"ghcr.io/devcontainers/features/github-cli:1": { "version": "2.72.0" },
23+
"ghcr.io/devcontainers/features/go:1": {
24+
"version": "1.25",
25+
"golangciLintVersion": "2.7.1"
26+
},
27+
"ghcr.io/michidk/devcontainers-features/bun:1": { "version": "1.2.12" },
28+
"ghcr.io/szkiba/devcontainer-features/gosec:1": { "version": "2.22.4" },
29+
"ghcr.io/szkiba/devcontainer-features/govulncheck:1": {
30+
"version": "1.1.4"
31+
},
32+
"ghcr.io/szkiba/devcontainer-features/bats:1": { "version": "1.11.1" },
33+
"ghcr.io/szkiba/devcontainer-features/cdo:1": { "version": "0.1.2" },
34+
"ghcr.io/szkiba/devcontainer-features/mdcode:1": { "version": "0.2.0" },
35+
"ghcr.io/grafana/devcontainer-features/xk6:1": { "version": "1.3.1" }
36+
},
37+
38+
"remoteEnv": {
39+
"GH_TOKEN": "${localEnv:GH_TOKEN}",
40+
"GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}"
41+
}
42+
}

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = false
9+
insert_final_newline = true
10+
11+
[*.{js,ts,yml,yaml,json,sh,bats,bash}]
12+
indent_size = 2
13+
trim_trailing_whitespace = true
14+
15+
[Makefile]
16+
indent_style = tab

.github/dependabot.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.github/workflows/linter.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Release
2+
3+
permissions: {}
4+
5+
on:
6+
push:
7+
tags: ["v*.*.*"]
8+
9+
jobs:
10+
release:
11+
name: Release
12+
uses: grafana/xk6/.github/workflows/extension-release.yml@4102eeec59fbec9afdfc21ab6b0eef44a4a2bf28 # v1.3.1
13+
permissions:
14+
contents: write
15+
with:
16+
go-version: "1.25.x"
17+
os: '["linux", "windows", "darwin"]'
18+
arch: '["amd64", "arm64"]'
19+
k6-version: "v1.4.2"
20+
xk6-version: "1.3.1"

.github/workflows/validate.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Validate
2+
3+
permissions: {}
4+
5+
on:
6+
workflow_dispatch:
7+
push:
8+
branches: ["main"]
9+
pull_request:
10+
branches: ["main"]
11+
12+
jobs:
13+
validate:
14+
name: Validate
15+
uses: grafana/xk6/.github/workflows/extension-validate.yml@4102eeec59fbec9afdfc21ab6b0eef44a4a2bf28 # v1.3.1
16+
permissions:
17+
contents: read
18+
pages: write
19+
id-token: write
20+
with:
21+
go-version: "1.25.x"
22+
go-versions: '["1.25.x","1.24.x"]'
23+
golangci-lint-version: "v2.7.1"
24+
platforms: '["ubuntu-latest", "windows-latest", "macos-latest"]'
25+
k6-versions: '["v1.4.2", "v1.0.0"]'
26+
xk6-version: "1.3.1"

.gitignore

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
# Binaries for programs and plugins
2-
*.exe
3-
*.exe~
4-
*.dll
5-
*.so
6-
*.dylib
7-
8-
# Test binary, built with `go test -c`
9-
*.test
10-
11-
# Output of the go coverage tool, specifically when used with LiteIDE
12-
*.out
13-
14-
# Dependency directories (remove the comment below to include it)
15-
# vendor/
16-
k6
17-
*.sqlite
18-
19-
.idea/
20-
.DS_Store
1+
/k6
2+
/k6.exe
3+
coverage.txt

0 commit comments

Comments
 (0)