feat(demos): added heart demo by @turgenevivan #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Demos | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'demos/**' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'demos/**' | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Set up Lua | |
uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 | |
- name: Set up LuaRocks | |
uses: hishamhm/gh-actions-luarocks@master | |
- name: Run luacheck on demos | |
env: | |
# renovate: datasource=github-releases depName=ammaraskar/msvc-problem-matcher | |
MSCV_PROBLEM_MATCHER_VERSION: 0.3.0 | |
run: | | |
IFS=$' \t\n'; set -euxo pipefail | |
# install luacheck | |
luarocks install luacheck | |
# download and setup problem matcher for luacheck's visual_studio formatter | |
wget -q "https://raw.githubusercontent.com/ammaraskar/msvc-problem-matcher/${MSCV_PROBLEM_MATCHER_VERSION}/msvc_matcher.json" \ | |
-O visual-studio-problem-matcher.json | |
echo "::add-matcher::visual-studio-problem-matcher.json" | |
# run luacheck | |
luacheck ./demos/ --no-cache --formatter visual_studio |