ci: update release-please-action from v3 to v4.1.1 (#251) #1331
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: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - 'main' | |
| push: | |
| branches: | |
| - 'main' | |
| permissions: | |
| contents: read | |
| jobs: | |
| API-diff: | |
| strategy: | |
| matrix: | |
| module: ["ConfidenceProvider", "Confidence"] | |
| runs-on: macOS-latest | |
| steps: | |
| - name: install sourcekitten | |
| run: brew install sourcekitten | |
| - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
| - name: Run public API diff | |
| run: scripts/api_diff.sh ${{ matrix.module }} | |
| Unit-Tests: | |
| runs-on: macOS-latest | |
| steps: | |
| - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
| - name: Build and Run Unit Tests | |
| run: scripts/run_tests.sh | |
| Integration-Tests: | |
| runs-on: macOS-latest | |
| steps: | |
| - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
| - name: Build and Run Integration Tests | |
| env: | |
| CLIENT_TOKEN: ${{ secrets.CONFIDENCE_CLIENT_TOKEN }} | |
| run: | | |
| if [ -z "$CLIENT_TOKEN" ]; then | |
| echo "Secret CONFIDENCE_CLIENT_TOKEN is not available. Skipping integration tests." | |
| exit 0 | |
| fi | |
| scripts/run_integration_tests.sh $CLIENT_TOKEN | |
| DemoApp: | |
| runs-on: macOS-latest | |
| steps: | |
| - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
| - name: Build Demo App | |
| run: ConfidenceDemoApp/scripts/build.sh | |
| SwiftLint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
| - name: GitHub Action for SwiftLint | |
| uses: norio-nomura/action-swiftlint@9f4dcd7fd46b4e75d7935cf2f4df406d5cae3684 # 3.2.1 | |
| with: | |
| args: --strict --config .swiftlint.yml |