Add Homebrew formula update script and release docs #26
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: | |
| branches: [ main, vscode-to-tools-refactor ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npm run test | |
| rust: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: cargo test --workspace | |
| tree-sitter: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| - run: npm ci | |
| - name: Verify grammar generation | |
| run: | | |
| cd packages/tree-sitter-allium | |
| npm run generate | |
| git diff --exit-code src/parser.c | |
| - name: Run corpus tests | |
| run: | | |
| cd packages/tree-sitter-allium | |
| npm run test | |
| - name: Build wasm | |
| run: | | |
| cd packages/tree-sitter-allium | |
| npm run build:wasm |