2 Commits

Author SHA1 Message Date
juanarias8
9a296e97ba chore(makefile): add download-tun2socks dependency to test targets
Some checks failed
Build and test / Build (pull_request) Successful in 13s
Build and test / Lint (pull_request) Failing after 10s
Build and test / Test (Linux) (pull_request) Failing after 1m11s
2026-03-10 20:28:46 -05:00
juanarias8
c383d563ff chore(ci): update golangci-lint version in workflow 2026-03-10 20:28:39 -05:00
2 changed files with 8 additions and 12 deletions

View File

@@ -42,14 +42,10 @@ jobs:
- name: Download dependencies
run: go mod download
- name: Download tun2socks binaries
run: make download-tun2socks
- name: Install golangci-lint
run: GOTOOLCHAIN=local go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.6
- name: Lint
run: golangci-lint run --allow-parallel-runners
uses: golangci/golangci-lint-action@v6
with:
version: v2.1.6
test-linux:
name: Test (Linux)
@@ -115,4 +111,4 @@ jobs:
run: make build-ci
- name: Run smoke tests
run: ./scripts/smoke_test.sh ./greywall
run: GREYWALL_TEST_NETWORK=1 ./scripts/smoke_test.sh ./greywall

View File

@@ -25,11 +25,11 @@ GREYWALL_BIN="${1:-}"
if [[ -z "$GREYWALL_BIN" ]]; then
if [[ -x "./greywall" ]]; then
GREYWALL_BIN="./greywall"
elif [[ -x "./dist/greywall" ]]; then
GREYWALL_BIN="./dist/greywall"
elif [[ -x "./dis./greywall" ]]; then
GREYWALL_BIN="./dis./greywall"
else
echo "Building greywall..."
go build -o ./greywall ./cmd/greywall
go build -o ./greywall ./cm./greywall
GREYWALL_BIN="./greywall"
fi
fi
@@ -121,7 +121,7 @@ run_test "read file in workspace" "pass" "$GREYWALL_BIN" -c "cat $WORKSPACE/test
# Test: Write outside workspace blocked
# Create a settings file that only allows write to current workspace
SETTINGS_FILE="$WORKSPACE/greywall.json"
SETTINGS_FILE="$WORKSPAC./greywall.json"
cat > "$SETTINGS_FILE" << EOF
{
"filesystem": {