chore(deps): update typescript-eslint monorepo to v8.67.0 #286
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: Test NATS | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| universal-reachable: | |
| name: Test NATS (Universal, Reachable) | |
| runs-on: ubuntu-latest | |
| services: | |
| nats: | |
| image: nats:2.14.2 | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Patch action.yml | |
| run: | | |
| sed -i 's|image:\s.*|image: Dockerfile|g' action.yml | |
| - name: Wait for NATS | |
| uses: ./ | |
| with: | |
| type: nats | |
| host: nats | |
| port: 4222 | |
| timeout: 300 | |
| universal-timeout: | |
| name: Test NATS (Universal, Timeout) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Patch action.yml | |
| run: | | |
| sed -i 's|image:\s.*|image: Dockerfile|g' action.yml | |
| - name: Wait for NATS | |
| id: wait-for-nats | |
| uses: ./ | |
| continue-on-error: true | |
| with: | |
| type: nats | |
| host: nats | |
| port: 4222 | |
| timeout: 30 | |
| - name: Fail if wait succeeded unexpectedly | |
| if: steps.wait-for-nats.outcome != 'failure' | |
| run: exit 1 | |
| dedicated-reachable: | |
| name: Test NATS (Dedicated, Reachable) | |
| runs-on: ubuntu-latest | |
| services: | |
| nats: | |
| image: nats:2.14.2 | |
| ports: | |
| - 4222:4222 | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Wait for NATS | |
| uses: ./nats | |
| with: | |
| host: localhost | |
| port: 4222 | |
| timeout: 300 | |
| dedicated-timeout: | |
| name: Test NATS (Dedicated, Timeout) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Wait for NATS | |
| id: wait-for-nats | |
| uses: ./nats | |
| continue-on-error: true | |
| with: | |
| host: localhost | |
| port: 4222 | |
| timeout: 30 | |
| - name: Fail if wait succeeded unexpectedly | |
| if: steps.wait-for-nats.outcome != 'failure' | |
| run: exit 1 | |
| required-check: | |
| name: Test NATS - Required Check | |
| needs: | |
| - universal-reachable | |
| - universal-timeout | |
| - dedicated-reachable | |
| - dedicated-timeout | |
| if: always() | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check for failures | |
| if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') | |
| run: | | |
| echo "One of the dependent jobs has failed or was cancelled." && exit 1 |