name: 🔨 Provider Test

on:
  schedule:
    - cron: '00 12 * * 1'
  workflow_dispatch:

jobs:
  build:
    name: Test Builds
    runs-on: ubuntu-latest
    steps:
      - name: Set up Go
        uses: actions/setup-go@v4
        with:
          go-version: 1.24.x

      - name: Check out code
        uses: actions/checkout@v3

      - name: Integration Tests
        env:
          GH_ACTION: true
          CENSYS_API_KEY: ${{secrets.CENSYS_ORGANIZATION_ID}}
          FOFA_API_KEY: ${{secrets.FOFA_KEY}}
          SHODAN_API_KEY: ${{secrets.SHODAN_API_KEY}}
          ZOOMEYE_API_KEY: ${{secrets.ZOOMEYE_API_KEY}}
          QUAKE_API_KEY: ${{secrets.QUAKE_TOKEN}}
          NETLAS_API_KEY: ${{secrets.NETLAS_API_KEY}}
        run: bash run.sh
        working-directory: integration-tests/

      
