Skip to content

chore(main): release 1.16.0 #174

chore(main): release 1.16.0

chore(main): release 1.16.0 #174

Workflow file for this run

---
name: Tests
on:
pull_request:
push:
branches: [main]
jobs:
test:
name: Tests - Lua 5.4
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install Lux
uses: lumen-oss/gh-actions-lux@60bee431bba7e65b608b8aa309be0eb0252f5e79 # v1.0.0
with:
version: 0.28.0
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y lua5.4 liblua5.4-dev cmake
sudo ln -sf /usr/bin/lua5.4 /usr/bin/lua
- uses: extractions/setup-just@dd310ad5a97d8e7b41793f8ef055398d51ad4de6 # v2.0.0
- name: Run tests
run: just test-ci
lint:
name: Lint & Format
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install Lux
uses: lumen-oss/gh-actions-lux@60bee431bba7e65b608b8aa309be0eb0252f5e79 # v1.0.0
with:
version: 0.28.0
- uses: extractions/setup-just@dd310ad5a97d8e7b41793f8ef055398d51ad4de6 # v2.0.0
- name: Install GitHub CLI and Lua (if missing)
run: |
which gh || sudo apt-get install -y gh
sudo apt-get update
sudo apt-get install -y lua5.4 liblua5.4-dev
sudo ln -sf /usr/bin/lua5.4 /usr/bin/lua
- name: Check formatting
run: |
lx fmt
git diff --exit-code || (echo "::error::Code is not formatted. Run 'lx fmt' locally and commit the changes." && exit 1)
- name: Run linter
run: just lint-ci
- name: Comment on PR if formatting needed
if: ${{ !env.ACT && failure() && github.event_name == 'pull_request' }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr comment --edit-last --body $'## ⚠️ Formatting Required\n\nYour pull request contains Lua code that is not formatted according to the project\'s style guidelines.\n\n**To fix this locally:**\n\n1. Run `lx fmt` in the repository root.\n2. Commit the changes and push again.\n\n**Pro tip:** Install [lefthook](https://github.com/evilmartians/lefthook) and run `lefthook install` to automatically format your code on each commit.\n\nOnce you\'ve formatted your code, this check will pass and you can merge your PR.'