name: Check compilation/bindings/style on: push: branches: [ main ] pull_request: branches: [ main ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Use Node.js 16.x uses: actions/setup-node@v2 with: node-version: 16.x cache: 'npm' - uses: actions-rs/toolchain@v1 with: toolchain: stable override: true - run: npm install - run: npm run ci - run: npm run test-ci - run: make install env: PREFIX: /tmp - run: cargo test - run: cd ./test-npm-package && npm test; cd - - run: npm pack && cd .. && npm install -g ./tree-sitter-swift/tree-sitter-swift-*.tgz; cd -