diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..eea87bb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v25 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + - uses: DeterminateSystems/magic-nix-cache-action@v2 + + - name: Run linter + run: | + nix develop --command bash -c "./build.fnl lint" diff --git a/README.md b/README.md index 6af4d23..1f0dc3c 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ # vim-fennel-syntax ![Vim][script-badge] +[![CI][ci-badge]][ci-jobs] Yet another Vim syntax highlighting plugin for [Fennel][1]. @@ -120,6 +121,8 @@ Override it by defining buffer local `b:fennel_use_lume`. [script-badge]: https://img.shields.io/badge/Made%20with%20Vimscript-019733.svg?logo=vim&style=flat-square +[ci-badge]: https://img.shields.io/github/actions/workflow/status/mnacamura/vim-fennel-syntax/ci.yml?logo=github&label=CI&style=flat-square +[ci-jobs]: https://github.com/mnacamura/vim-fennel-syntax/actions/workflows/ci.yml [1]: https://fennel-lang.org/ [2]: https://github.com/bakpakin/fennel.vim/ [3]: https://github.com/savq/paq-nvim/