Add readme to streamql and publish #60
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: Tests | |
| on: | |
| pull_request: | |
| types: | |
| - review_requested | |
| push: | |
| branches: | |
| - 'main' | |
| concurrency: | |
| group: tests-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-rust: | |
| name: 'Test rust' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@v4 | |
| - name: Install rust toolchain | |
| working-directory: ./rust | |
| run: rustup show | |
| - name: Run clippy | |
| working-directory: ./rust | |
| run: cargo clippy | |
| - name: Run tests | |
| working-directory: ./rust | |
| run: cargo test | |
| test-js: | |
| name: 'Test javascript' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v3.0.0 | |
| with: | |
| version: 8 | |
| - name: Install dependencies | |
| working-directory: ./js | |
| run: pnpm install | |
| - name: Run linter | |
| working-directory: ./js | |
| run: pnpm lint | |
| - name: Run typechecker | |
| working-directory: ./js | |
| run: pnpm typecheck | |
| - name: Run knip | |
| working-directory: ./js | |
| run: pnpm knip | |
| - name: Run tests | |
| working-directory: ./js | |
| run: pnpm test |