diff --git a/.bun-version b/.bun-version new file mode 100644 index 0000000..54eae6b --- /dev/null +++ b/.bun-version @@ -0,0 +1 @@ +1.1.38 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index 0b8d187..0000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,25 +0,0 @@ -on: - push: - branches: - - main -name: docs - -jobs: - docs: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: panvimdoc - uses: kdheepak/panvimdoc@main - with: - vimdoc: my-template-docs - version: "Neovim >= 0.8.0" - demojify: true - treesitter: true - - name: Push changes - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: "auto-generate vimdoc" - commit_user_name: "github-actions[bot]" - commit_user_email: "github-actions[bot]@users.noreply.github.com" - commit_author: "github-actions[bot] " diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml deleted file mode 100644 index 19a56eb..0000000 --- a/.github/workflows/lint-test.yml +++ /dev/null @@ -1,33 +0,0 @@ ---- -on: [push, pull_request] -name: lint-test - -jobs: - stylua: - name: stylua - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: JohnnyMorganz/stylua-action@v3 - with: - version: latest - token: ${{ secrets.GITHUB_TOKEN }} - args: --color always --check lua - - test: - runs-on: ubuntu-latest - strategy: - matrix: - nvim-versions: ['stable', 'nightly'] - name: test - steps: - - name: checkout - uses: actions/checkout@v3 - - - uses: rhysd/action-setup-vim@v1 - with: - neovim: true - version: ${{ matrix.nvim-versions }} - - - name: run tests - run: make test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 05db001..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: "release" -on: - push: - tags: - - 'v*' -jobs: - luarocks-upload: - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v3 - - name: LuaRocks Upload - uses: nvim-neorocks/luarocks-tag-release@v4 - env: - LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..993f7e2 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup Neovim + uses: rhysd/action-setup-vim@v1 + with: + neovim: true + version: stable + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version-file: ".bun-version" + + - name: Install dependencies + working-directory: ./bun + run: bun install --frozen-lockfile + + - name: Run tests + working-directory: ./bun + run: bun test