check binary #118
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 test | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x, 22.x, 24.x] | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Start NATS | |
| run: docker compose up -d && sleep 10 | |
| working-directory: ./test | |
| - name: Check containers | |
| run: docker compose ps | |
| working-directory: ./test | |
| - name: Check logs | |
| run: docker compose logs | |
| working-directory: ./test | |
| - name: Execute tests | |
| run: npm test | |
| working-directory: ./ | |
| - name: Stop containers | |
| run: docker compose down -v | |
| working-directory: ./test |