Skip to content

chore(deps): bump hishamhm/gh-actions-lua from 12 to 13 in the github-actions group #316

chore(deps): bump hishamhm/gh-actions-lua from 12 to 13 in the github-actions group

chore(deps): bump hishamhm/gh-actions-lua from 12 to 13 in the github-actions group #316

Workflow file for this run

name: "Unix build"
concurrency:
# for PR's cancel the running task, if another commit is pushed
group: ${{ github.workflow }} ${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
on:
# build on PR and push-to-main. This works for short-lived branches, and saves
# CPU cycles on duplicated tests.
# For long-lived branches that diverge, you'll want to run on all pushes, not
# just on push-to-main.
pull_request: {}
push:
branches:
- master
jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-24.04"
- "macos-latest"
luaVersion:
- "5.1"
- "5.2"
- "5.3"
- "5.4"
- "5.5"
- "luajit"
- "luajit-openresty"
include:
# On Windows builds:
# 'hishamhm/gh-actions-lua' will build the PuC Rio Lua versions using
# MSVC, and the LuaJIT version using MinGW/gcc. By running against
# both below, we test both toolchains.
- os: "windows-latest"
toolchain: "msvc"
luaVersion: "5.1"
- os: "windows-latest"
toolchain: "msvc"
luaVersion: "5.2"
- os: "windows-latest"
toolchain: "msvc"
luaVersion: "5.3"
- os: "windows-latest"
toolchain: "msvc"
luaVersion: "5.4"
- os: "windows-latest"
toolchain: "msvc"
luaVersion: "5.5"
- os: "windows-latest"
toolchain: "mingw" # unused, other than for display in the UI
luaVersion: "luajit"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup MSVC
# the 'hishamhm/gh-actions-lua' step requires msvc to build PuC Rio Lua
# versions on Windows (LuaJIT will be build using MinGW/gcc).
if: ${{ matrix.toolchain == 'msvc' }}
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1
- uses: hishamhm/gh-actions-lua@85e2287697275df96334743ac654241a8fd34ab3 # master
with:
luaVersion: ${{ matrix.luaVersion }}
- uses: hishamhm/gh-actions-luarocks@95d2308a0aff36ad31ebadca493ed14853399842 # master
with:
luaRocksVersion: "3.13.0"
- name: dependencies
run: |
luarocks install busted
luarocks install luacov-coveralls
luarocks remove penlight --force
- name: build
run: |
luarocks make
- name: Busted tests
run: |
busted --coverage --Xoutput "--color"
- name: Old test suite
run: |
lua run.lua tests --luacov
- name: Examples
run: |
lua run.lua examples
- name: Report test coverage
if: success()
continue-on-error: true
run: luacov-coveralls
env:
COVERALLS_REPO_TOKEN: ${{ github.token }}