diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml deleted file mode 100644 index ab38859..0000000 --- a/.github/workflows/test.yaml +++ /dev/null @@ -1,59 +0,0 @@ -name: Build and tests - -on: - pull_request: - push: - branches: [main] - tags: - schedule: - - cron: "0 0 * * *" - -jobs: - tests: - name: "Build and run parser tests" - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macos-latest] - fail-fast: false - steps: - - name: Checkout parser sources - uses: actions/checkout@v3 - - - name: Checkout Zeek sources - uses: actions/checkout@v3 - with: - repository: zeek/zeek - path: test/zeek-src - - - uses: actions/setup-node@v3 - with: - node-version: "20" - - - run: npm install - - - name: Add Node.js to PATH - run: echo "$PWD/node_modules/.bin" >> $GITHUB_PATH - - - name: Setup tree-sitter - # "tree-sitter init-config" adds $HOME/github as a default - # directory to look for languages in, so we create a symlink - # that directs it to our local clone. - run: | - ln -s $(cd .. && pwd) $HOME/github - tree-sitter init-config - - - name: Generate parser - run: tree-sitter generate - - - name: Test Zeek grammar - run: cd test && ./parse-zeek-tree.sh ./zeek-src/scripts - - - name: Upload test artifacts - uses: actions/upload-artifact@v3 - if: failure() - with: - name: parser-errors - path: | - test/*.zeek - test/*.err diff --git a/README.md b/README.md index e29da31..b2aa39f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # tree-sitter-zeek -[![Tests](https://github.com/zeek/tree-sitter-zeek/actions/workflows/test.yaml/badge.svg)](https://github.com/zeek/tree-sitter-zeek/actions/workflows/test.yaml) - A [Zeek](https://zeek.org) grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter). ## Background