Compare commits
2 Commits
fix-instal
...
9a296e97ba
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a296e97ba | ||
|
|
c383d563ff |
@@ -42,14 +42,10 @@ jobs:
|
|||||||
- name: Download dependencies
|
- name: Download dependencies
|
||||||
run: go mod download
|
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
|
- name: Lint
|
||||||
run: golangci-lint run --allow-parallel-runners
|
uses: golangci/golangci-lint-action@v6
|
||||||
|
with:
|
||||||
|
version: v2.1.6
|
||||||
|
|
||||||
test-linux:
|
test-linux:
|
||||||
name: Test (Linux)
|
name: Test (Linux)
|
||||||
@@ -115,4 +111,4 @@ jobs:
|
|||||||
run: make build-ci
|
run: make build-ci
|
||||||
|
|
||||||
- name: Run smoke tests
|
- name: Run smoke tests
|
||||||
run: ./scripts/smoke_test.sh ./greywall
|
run: GREYWALL_TEST_NETWORK=1 ./scripts/smoke_test.sh ./greywall
|
||||||
|
|||||||
@@ -25,11 +25,11 @@ GREYWALL_BIN="${1:-}"
|
|||||||
if [[ -z "$GREYWALL_BIN" ]]; then
|
if [[ -z "$GREYWALL_BIN" ]]; then
|
||||||
if [[ -x "./greywall" ]]; then
|
if [[ -x "./greywall" ]]; then
|
||||||
GREYWALL_BIN="./greywall"
|
GREYWALL_BIN="./greywall"
|
||||||
elif [[ -x "./dist/greywall" ]]; then
|
elif [[ -x "./dis./greywall" ]]; then
|
||||||
GREYWALL_BIN="./dist/greywall"
|
GREYWALL_BIN="./dis./greywall"
|
||||||
else
|
else
|
||||||
echo "Building greywall..."
|
echo "Building greywall..."
|
||||||
go build -o ./greywall ./cmd/greywall
|
go build -o ./greywall ./cm./greywall
|
||||||
GREYWALL_BIN="./greywall"
|
GREYWALL_BIN="./greywall"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -121,7 +121,7 @@ run_test "read file in workspace" "pass" "$GREYWALL_BIN" -c "cat $WORKSPACE/test
|
|||||||
|
|
||||||
# Test: Write outside workspace blocked
|
# Test: Write outside workspace blocked
|
||||||
# Create a settings file that only allows write to current workspace
|
# 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
|
cat > "$SETTINGS_FILE" << EOF
|
||||||
{
|
{
|
||||||
"filesystem": {
|
"filesystem": {
|
||||||
|
|||||||
Reference in New Issue
Block a user