Skip to content

Enhance scan error handling and add tests for scan functionality #60

Enhance scan error handling and add tests for scan functionality

Enhance scan error handling and add tests for scan functionality #60

Workflow file for this run

---
name: Functional Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24' # Match your go.mod
- name: Build dalfox
run: go build -o dalfox .
- name: Setup Ruby
uses: ruby/[email protected]
with:
ruby-version: 3.4.0 # Match bundle path
bundler-cache: true
cache-version: 1
- name: Install Ruby dependencies
run: bundle install # Default gem location
- name: Run RSpec tests
run: bundle exec rspec
env:
PATH: ${{ github.workspace }}:$PATH # Ensure dalfox is in PATH