mirror of
https://github.com/lunchcat/sif.git
synced 2026-04-28 11:33:06 -07:00
nuclei/v3 v3.8.0 (PR #97) requires go >= 1.25.7 in go.mod. this breaks the existing CI pinned to go 1.24: - build: "go.mod requires go >= 1.25.7 (running go 1.24.13; GOTOOLCHAIN=local)" - lint: "the Go language version (go1.24) used to build golangci-lint is lower than the targeted Go version (1.25.7)" bumps setup-go to 1.25 across all workflows and moves the lint job to golangci-lint-action v8 with golangci-lint v2.11.4 (built with go 1.25). migrates .golangci.yml to the v2 schema: - version: "2" - linters-settings -> linters.settings - issues.exclude-rules -> linters.exclusions.rules - drop gosimple (merged into staticcheck in v2) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
name: functional test
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
workflow_call:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: set up go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.25"
|
|
- name: build sif
|
|
run: make
|
|
- name: run sif with features
|
|
run: |
|
|
./sif -u https://example.com -dnslist small -dirlist small -dork -git -whois -cms -framework
|
|
if [ $? -eq 0 ]; then
|
|
echo "Sif ran successfully"
|
|
else
|
|
echo "Sif exited with an error"
|
|
exit 1
|
|
fi
|
|
|
|
- name: test module system
|
|
run: |
|
|
echo "Listing modules..."
|
|
./sif -lm
|
|
echo "Running all modules..."
|
|
./sif -u https://example.com -am
|
|
if [ $? -eq 0 ]; then
|
|
echo "Module system working"
|
|
else
|
|
echo "Module system failed"
|
|
exit 1
|
|
fi
|