Updated recoil animation #77
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: JSON linter + luacheck | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
# Check JSON assets for syntax errors. | |
json-linter: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: ( cd tests/travis && npm install ) | |
- name: RUN -- npm test | |
run: ( cd tests/travis && npm test ) | |
- name: Check description of pull request | |
env: | |
PRDESC: ${{ github.event.pull_request.body }} | |
run: | | |
echo "$PRDESC" | grep -qvz '"' || ( echo "::error:: Description of Pull Request shouldn't contain quote symbols [\"], please replace them with single quote [']."; false ) | |
# Check Lua files with "luacheck" tool (Lua static analyzer). | |
luacheck: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: sudo apt-get install -y luarocks && sudo luarocks install luacheck | |
- name: RUN -- luacheck . | |
run: luacheck --no-color --quiet . | |
# Detect non-optimized PNG images (where lossless compression can seriously reduce their filesize). | |
unoptimized-png-images: | |
if: ${{ github.base_ref || github.ref != 'refs/heads/master' }} | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: sudo apt-get install -y optipng | |
- run: .github/scripts/detect-unoptimized-png-images.sh | |
# Create .pak file for each GitHub release. | |
pack-assets: | |
if: startsWith(github.ref, 'refs/tags/') | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Remove directories that are not needed inside PAK file (e.g. ".git" or "tests") | |
run: rm -rf .git a_modders tests | |
- uses: edwardspec/github-action-pack-starbound-mod@v1 | |
with: | |
outputFilename: FrackinUniverse.pak | |
- run: ls -l FrackinUniverse.pak | |
- name: Add .pak file to release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: FrackinUniverse.pak | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |