Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/remove reuse license header validation #133

Merged
merged 3 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md.license

This file was deleted.

3 changes: 0 additions & 3 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: License Check
uses: fsfe/reuse-action@v2

- name: Lint
uses: magefile/mage-action@v3
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/xk6-dashboard-social.png.license

This file was deleted.

3 changes: 0 additions & 3 deletions .github/xk6-dashboard-social.svg.license

This file was deleted.

3 changes: 0 additions & 3 deletions .golangci.yml.license

This file was deleted.

5 changes: 0 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ default_install_hook_types: [pre-push]
default_stages: [pre-push]

repos:
- repo: https://github.com/fsfe/reuse-tool
rev: v2.1.0
hooks:
- id: reuse

- repo: https://github.com/golangci/golangci-lint
rev: v1.54.1
hooks:
Expand Down
3 changes: 0 additions & 3 deletions .vscode/settings.json.license

This file was deleted.

5 changes: 0 additions & 5 deletions CODE_OF_CONDUCT.md.license

This file was deleted.

3 changes: 0 additions & 3 deletions CONTRIBUTING.md.license

This file was deleted.

235 changes: 0 additions & 235 deletions LICENSES/AGPL-3.0-only.txt

This file was deleted.

156 changes: 0 additions & 156 deletions LICENSES/CC-BY-4.0.txt

This file was deleted.

9 changes: 0 additions & 9 deletions LICENSES/MIT.txt

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/lerna.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/package.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/config/.eslintrc.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/config/.prettierrc.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/config/dist/config.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/config/package.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/model/.eslintrc.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/model/.prettierrc.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/model/package.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/model/tsconfig.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/report/.eslintrc.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/report/.prettierrc.json.license

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/report/package.json.license

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/report/tsconfig.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/report/tsconfig.node.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/report/yarn.lock.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/ui/.eslintrc.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/ui/.prettierrc.json.license

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/ui/dist/xk6-dashboard.svg.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/ui/package.json.license

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/ui/tsconfig.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/ui/tsconfig.node.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/ui/yarn.lock.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/view/.eslintrc.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/view/.prettierrc.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/view/package.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/packages/view/tsconfig.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/assets/yarn.lock.license

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/testdata/customize/config-bad.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/testdata/customize/config.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/testdata/customize/config/config.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/testdata/result.json.gz.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/testdata/result.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/testdata/result.ndjson.gz.license

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/testdata/result.ndjson.license

This file was deleted.

3 changes: 0 additions & 3 deletions go.mod.license

This file was deleted.

3 changes: 0 additions & 3 deletions go.sum.license

This file was deleted.

3 changes: 0 additions & 3 deletions magefiles/go.mod.license

This file was deleted.

3 changes: 0 additions & 3 deletions magefiles/go.sum.license

This file was deleted.

3 changes: 0 additions & 3 deletions magefiles/go.work.license

This file was deleted.

3 changes: 0 additions & 3 deletions magefiles/go.work.sum.license

This file was deleted.

22 changes: 10 additions & 12 deletions magefiles/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ func Replay(script string) error {
record := filepath.Join(workdir, slug(script)+"-record.ndjson.gz")

return sh.Run(
"xk6",
"web-dashboard",
cliBin(),
"replay",
record,
)
Expand All @@ -135,26 +134,25 @@ func Testdata() error {
)
}

// update license headers
func License() error {
return license()
func cliBin() string {
var ext string

if runtime.GOOS == "windows" {
ext = ".exe"
}

return filepath.Join(workdir, "k6-web-dashboard"+ext)
}

// build the xk6-dashboard CLI.
func Cli() error {
mg.Deps(tools)
mg.Deps(cliReadme)

var ext string

if runtime.GOOS == "windows" {
ext = ".exe"
}

_, err := sh.Exec(nil, os.Stdout, os.Stderr, "goreleaser",
"build",
"-o",
filepath.Join(workdir, "k6-web-dashboard"+ext),
cliBin(),
"--snapshot",
"--clean",
"--single-target",
Expand Down
Loading
Loading