Update project structure #171
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: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x, 22.x] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Start Redis | |
| uses: supercharge/[email protected] | |
| with: | |
| redis-version: '5' | |
| - name: Setup Rabbitmq | |
| uses: nijel/[email protected] | |
| - name: Setup NATS | |
| run: | | |
| wget https://github.com/nats-io/nats-server/releases/download/v2.0.0/nats-server-v2.0.0-linux-amd64.zip | |
| unzip nats-server-v2.0.0-linux-amd64.zip | |
| nats-server-v2.0.0-linux-amd64/nats-server </dev/null &>/dev/null & | |
| - run: sleep 30 | |
| - run: npm ci | |
| - run: npm test |