SDK Integration Tests #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: SDK Integration Tests | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| cli: | |
| name: CLI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: apialerts/cli | |
| ref: feature/1.3.0 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| - run: go build -o apialerts . | |
| - run: ./apialerts send --key $APIALERTS_API_KEY -m "CLI - minimal" | |
| env: | |
| APIALERTS_API_KEY: ${{ secrets.APIALERTS_TEST_API_KEY }} | |
| - run: ./apialerts send --key $APIALERTS_API_KEY -m "CLI - full" -e "sdk.test" -t "Integration Test" -c "developer" -g "CI/CD,CLI" -l "https://github.com/apialerts/cli/actions" | |
| env: | |
| APIALERTS_API_KEY: ${{ secrets.APIALERTS_TEST_API_KEY }} | |
| csharp: | |
| name: C# SDK | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: apialerts/apialerts-csharp | |
| ref: feature/2.0.0 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0' | |
| - run: dotnet run --project sample | |
| env: | |
| APIALERTS_API_KEY: ${{ secrets.APIALERTS_TEST_API_KEY }} | |
| dart: | |
| name: Dart SDK | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: apialerts/apialerts-dart | |
| ref: feature/2.0.0 | |
| - uses: dart-lang/setup-dart@v1 | |
| - run: dart pub get | |
| - run: dart run sample/run.dart | |
| env: | |
| APIALERTS_API_KEY: ${{ secrets.APIALERTS_TEST_API_KEY }} | |
| go: | |
| name: Go SDK | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: apialerts/apialerts-go | |
| ref: feature/2.0.0 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| - run: go run sample/github.go | |
| env: | |
| APIALERTS_API_KEY: ${{ secrets.APIALERTS_TEST_API_KEY }} | |
| godot: | |
| name: Godot SDK | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: apialerts/apialerts-godot | |
| ref: feature/2.0.0 | |
| - name: Download Godot | |
| run: | | |
| wget -q https://github.com/godotengine/godot/releases/download/4.3-stable/Godot_v4.3-stable_linux.x86_64.zip | |
| unzip -q Godot_v4.3-stable_linux.x86_64.zip | |
| mv Godot_v4.3-stable_linux.x86_64 godot | |
| chmod +x godot | |
| - name: Run sample | |
| run: ./godot --headless --path . --script sample/sample.gd | |
| env: | |
| APIALERTS_API_KEY: ${{ secrets.APIALERTS_TEST_API_KEY }} | |
| js: | |
| name: JS SDK | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: apialerts/apialerts-js | |
| ref: feature/2.0.0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - run: npm install --legacy-peer-deps | |
| - run: npx tsx sample/run.ts | |
| env: | |
| APIALERTS_API_KEY: ${{ secrets.APIALERTS_TEST_API_KEY }} | |
| kotlin: | |
| name: Kotlin SDK | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: apialerts/apialerts-kotlin | |
| ref: feature/2.0.0 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - run: ./gradlew :sample:run | |
| env: | |
| APIALERTS_API_KEY: ${{ secrets.APIALERTS_TEST_API_KEY }} | |
| php: | |
| name: PHP SDK | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: apialerts/apialerts-php | |
| ref: feature/2.0.0 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.3' | |
| - run: composer install --no-interaction | |
| - run: php sample/run.php | |
| env: | |
| APIALERTS_API_KEY: ${{ secrets.APIALERTS_TEST_API_KEY }} | |
| python: | |
| name: Python SDK | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: apialerts/apialerts-python | |
| ref: feature/2.0.0 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - run: pip install . | |
| - run: python sample/run.py | |
| env: | |
| APIALERTS_API_KEY: ${{ secrets.APIALERTS_TEST_API_KEY }} | |
| ruby: | |
| name: Ruby SDK | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: apialerts/apialerts-ruby | |
| ref: feature/2.0.0 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.3' | |
| bundler-cache: true | |
| - run: ruby sample/run.rb | |
| env: | |
| APIALERTS_API_KEY: ${{ secrets.APIALERTS_TEST_API_KEY }} | |
| rust: | |
| name: Rust SDK | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: apialerts/apialerts-rust | |
| ref: feature/2.0.0 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: cargo run --example run | |
| env: | |
| APIALERTS_API_KEY: ${{ secrets.APIALERTS_TEST_API_KEY }} | |
| swift: | |
| name: Swift SDK | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: apialerts/apialerts-swift | |
| ref: feature/2.0.0 | |
| - run: swift run --package-path sample | |
| env: | |
| APIALERTS_API_KEY: ${{ secrets.APIALERTS_TEST_API_KEY }} |