Skip to content

Commit

Permalink
chore: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Ryall committed Aug 5, 2024
1 parent 384c55e commit 01c0da2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 30 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,20 @@ on:
- '**:**'

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
- run: nix flake check

build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node
uses: actions/[email protected]
with:
node-version: '18'

- name: Display Node versions
run: |
node --version
npm --version
- name: Install dependencies
run: npm install

- name: Test corpus & parse examples
run: npm test
- uses: cachix/install-nix-action@v27
- run: nix build
- run: nix develop -c sh -c 'tree-sitter generate --no-bindings && tree-sitter test'
20 changes: 4 additions & 16 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,27 +93,15 @@
packages = {
default = packages.tree-sitter-beancount;

tree-sitter-beancount = pkgs.callPackage (nixpkgs + "/pkgs/development/tools/parsing/tree-sitter/grammar.nix") {} {
tree-sitter-beancount = pkgs.tree-sitter.buildGrammar {
language = "beancount";
generate = true;
src = ./.;
inherit (pkgs.tree-sitter) version;
version = "n/a";
};

inherit (pkgs) tree-sitter;
};
}
)
// {
overlays = {
default = final: prev: {
tree-sitter = prev.tree-sitter.override {
extraGrammars = {
tree-sitter-beancount = {
src = ./.;
};
};
};
};
};
};
);
}

0 comments on commit 01c0da2

Please sign in to comment.