mirror of
https://github.com/iofq/nvim-treesitter-main.git
synced 2026-01-23 09:25:17 -06:00
32 lines
998 B
YAML
32 lines
998 B
YAML
---
|
|
name: CI
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: DeterminateSystems/nix-installer-action@main
|
|
- uses: DeterminateSystems/flakehub-cache-action@main
|
|
- uses: cachix/cachix-action@master
|
|
if: github.ref == 'refs/heads/master'
|
|
with:
|
|
name: nvim-treesitter-main
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
- run: nix flake check
|
|
- run: nix run nixpkgs#nixfmt **/*.nix
|
|
|
|
# check generate-parsers
|
|
- run: mv generated.nix generated.nix.old
|
|
- run: nix develop --command "generate-parsers"
|
|
- run: diff generated.nix generated.nix.old
|
|
|
|
- run: nix build .#nvim-treesitter.withAllGrammars
|
|
# Ensure bundle is injected into source code
|
|
- run: grep -R "/nix/store" result/lua
|
|
# Ensure parsers & queries are linked to rtp
|
|
- run: |-
|
|
test -f result/parser/http.so
|
|
test -d result/queries/http
|