Skip to content

Refactor/multi entry #46

Refactor/multi entry

Refactor/multi entry #46

Workflow file for this run

name: Build and Test
on:
push:
branches:
- main
pull_request:
types:
- opened
- edited
jobs:
run-test:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
- uses: leafo/gh-actions-lua@v10
with:
lua-version: 5.4
- name: Run test
run: make test
ensure-build:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
- name: Ensure build
run: |
make build
test -z "$(git diff --name-only)"
build:
runs-on: ubuntu-latest
timeout-minutes: 3
strategy:
matrix:
target:
- '{
"name": "aseprite-scripts/psd",
"output": "./psd/Export as psd.lua"
}'
- '{
"name": "aseprite-scripts/icon-and-cursor",
"output": "./icon-and-cursor/Export as ico cur ani.lua"
}'
- '{
"name": "aseprite-scripts/lcd-pixel-filter",
"output": "./lcd-pixel-filter/LCD Pixel Filter.lua"
}'
- '{
"name": "aseprite-scripts/smooth-filter",
"output": "./smooth-filter/Smooth Filter.lua"
}'
steps:
- uses: actions/checkout@v4
- uses: leafo/gh-actions-lua@v10
with:
lua-version: 5.4
- name: Build
run: |
make build
- uses: ./.github/actions/use-script-manifest
id: manifest
with:
filename: ${{ fromJSON(matrix.target).output }}
- name: Check package name
run: |
test "${{ fromJSON(matrix.target).name }}" = "${{ steps.manifest.outputs.name }}"
- name: Print package manifest
run: |
echo 'name: ${{ steps.manifest.outputs.name }}'
echo 'description: ${{ steps.manifest.outputs.description }}'
echo 'version: ${{ steps.manifest.outputs.version }}'
echo 'author: ${{ steps.manifest.outputs.author }}'
echo 'license: ${{ steps.manifest.outputs.license }}'
echo 'homepage: ${{ steps.manifest.outputs.homepage }}'