diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml new file mode 100644 index 0000000..8b2d4de --- /dev/null +++ b/.github/workflows/check.yaml @@ -0,0 +1,14 @@ +--- +name: "Tests and checks" +on: + pull_request: + push: +jobs: + checks: + runs-on: ubuntu-latest + name: Checks + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v22 + - name: Nix checks + run: nix flake check -L \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..87886bf --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,18 @@ +name: LuaRocks release +on: + push: + tags: # Will upload to luarocks.org when a tag is pushed + - "*" + pull_request: # Will test a local install without uploading to luarocks.org + +jobs: + luarocks-release: + runs-on: ubuntu-latest + name: LuaRocks upload + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: LuaRocks Upload + uses: nvim-neorocks/luarocks-tag-release@v5 + env: + LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} \ No newline at end of file