From bff57605b4719bc16a1f8060a329948b336e8bd9 Mon Sep 17 00:00:00 2001 From: pyr33x Date: Wed, 26 Nov 2025 13:28:59 +0330 Subject: [PATCH 1/4] feat: initialize air --- .air.toml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ .gitignore | 5 +++++ 2 files changed, 57 insertions(+) create mode 100644 .air.toml create mode 100644 .gitignore diff --git a/.air.toml b/.air.toml new file mode 100644 index 0000000..76ddd12 --- /dev/null +++ b/.air.toml @@ -0,0 +1,52 @@ +root = "." +testdata_dir = "testdata" +tmp_dir = "tmp" + +[build] + args_bin = [] + bin = "bin/proxy" + cmd = "go build -o bin/proxy ." + delay = 1000 + exclude_dir = ["assets", "tmp", "vendor", "testdata"] + exclude_file = [] + exclude_regex = ["_test.go"] + exclude_unchanged = false + follow_symlink = false + full_bin = "" + include_dir = [] + include_ext = ["go", "tpl", "tmpl", "html"] + include_file = [] + kill_delay = "0s" + log = "build-errors.log" + poll = false + poll_interval = 0 + post_cmd = [] + pre_cmd = [] + rerun = false + rerun_delay = 500 + send_interrupt = false + stop_on_error = false + +[color] + app = "" + build = "yellow" + main = "magenta" + runner = "green" + watcher = "blue" + +[log] + main_only = false + silent = false + time = false + +[misc] + clean_on_exit = false + +[proxy] + app_port = 0 + enabled = false + proxy_port = 0 + +[screen] + clear_on_rebuild = true + keep_scroll = true diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..76227e6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# binary +/bin + +# temp +/tmp From c1b7723e384f939dc754d2202e8d782284ea4c21 Mon Sep 17 00:00:00 2001 From: pyr33x Date: Wed, 26 Nov 2025 13:33:12 +0330 Subject: [PATCH 2/4] feat: initialize lint workflow action --- .github/workflows/lint.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..616b545 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,30 @@ +name: 🔨 Lint + +on: + pull_request: + branches: ["master"] + +permissions: + contents: read + pull-requests: read + +jobs: + golangci: + strategy: + matrix: + go: [stable] + os: [ubuntu-latest, macos-latest] + name: lint + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + + - name: "Setup Go" + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go }} + + - name: Lint + uses: golangci/golangci-lint-action@v8 + with: + version: v2.6.2 From ba6460d57a7a6181ab07542f30a05d50ce8be0a5 Mon Sep 17 00:00:00 2001 From: pyr33x Date: Wed, 26 Nov 2025 13:34:25 +0330 Subject: [PATCH 3/4] fix: ignore env files --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 76227e6..10245ca 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ # temp /tmp + +# env +*.env From 9bb13b078453fdc68d795839a7bc82a9defc7e34 Mon Sep 17 00:00:00 2001 From: pyr33x Date: Wed, 26 Nov 2025 13:40:46 +0330 Subject: [PATCH 4/4] chore: add air watch bash script --- watch.bash | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 watch.bash diff --git a/watch.bash b/watch.bash new file mode 100644 index 0000000..1baffe5 --- /dev/null +++ b/watch.bash @@ -0,0 +1,3 @@ +#!/bin/env bash +echo "running air watch..." +air