Skip to content
Merged
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
67 changes: 4 additions & 63 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ on:
# - released
# - created

workflow_dispatch:
# workflow_dispatch:
push:
branches: [ main ]
# tags:
# - 'v[0-9]+.[0-9]+.[0-9]+'

pull_request:
branches: [ main ]
# pull_request:
# branches: [ main ]

env:
GO_VERSION: '1.24'
Expand All @@ -23,7 +23,7 @@ env:
jobs:

Verification:
if: github.ref_name != 'main'
# if: github.ref_name != 'main'
name: Verification of all checks
runs-on: ubuntu-latest

Expand All @@ -36,17 +36,6 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

# # - name: Cache Go modules
# # uses: actions/cache@v3
# # with:
# # path: |
# # ~/go/pkg/mod
# # ~/.cache/go-build
# # key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# # restore-keys: |
# # ${{ runner.os }}-go-


- name: Run Lint
run: |
echo "Running lint..."
Expand All @@ -58,54 +47,6 @@ jobs:
exit 1
fi
go vet ./...

# - name: Run tests
# run: |
# echo "Running tests..."
# go mod download
# go test -v -race ./...
# go build -v ${{ env.MAIN_FILE }}

# - name: Run Security
# run: |
# echo "Running security checks..."

# # Hardcoded credentials check
# # Exclude common directories and files
# EXCLUDES=(".git" "frontend" "node_modules" "build" "docs")
# # Exclude file patterns
# FILE_EXCLUDES=("*.yml" "*.yaml" "*.md" "*.js" "*.jsx" "*.json" "*_test.go")
# # Build grep exclude params
# EXCLUDE_PARAMS=()
# for dir in "${EXCLUDES[@]}"; do EXCLUDE_PARAMS+=(--exclude-dir="$dir"); done
# for file in "${FILE_EXCLUDES[@]}"; do EXCLUDE_PARAMS+=(--exclude="$file"); done
# # Run grep safely
# if grep -rI "password.*=" . "${EXCLUDE_PARAMS[@]}" | \
# grep -v "^[[:space:]]*//" | \
# grep -v 'json:' | \
# grep -v '`json:' | \
# grep -v "Password.*string" | \
# grep -v "r.BasicAuth()" | \
# grep -v "subtle.ConstantTimeCompare"; then
# echo "Potential hardcoded credentials found"
# exit 1
# fi

# build-and-publish-docker:
# if: github.ref_name != 'main'
# needs: [Verification]
# uses: ./.github/workflows/template-docker.yml
# with:
# dockerfile_path: "./docker/Dockerfile"
# docker_push: true
# image_name: "hostinfo"
# version: ${{ github.ref_name }}
# registry: "docker.io"
# organization: "maximleus"
# platforms: "linux/amd64,linux/arm64"
# secrets:
# DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
# DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

semantic-release:
if: >
Expand Down