Skip to content

Added install.sh script #570

Added install.sh script

Added install.sh script #570

Workflow file for this run

# This is the configuration file for our CI via Github Actions.
#
# The result of all executions of the github actions is logged in the "Actions" tab at the top of
# the repository. If the jobs aren't running as they should, check there to see if you didn't
# introduce a syntax error in the YAML file or something like that.
#
# Useful reference:
# - https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions
# - https://github.com/actions/checkout
name: Github Actions CI
# Github Actions can be infuriatingly obtuse at times. I don't know exactly why we need both the
# push and the pull_request events. It's wasteful, but at least does what we want.
#
# - only push: doesn't run checks if an external fork opens a pull request
# - only pull_request: doesn't work with caching
# - both events: runs the same checks twice, wasting compute time
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Lua and LuaRocks
run: |
./install.sh lua
./install.sh rocks
run: |

Check failure on line 37 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Github Actions CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 37, Col: 15): 'run' is already defined
- name: Install Luacheck
run: luarocks install --local luacheck
- name: Run Luacheck
run: |
eval "$(luarocks path)"
./run-lint
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Lua, LuaRocks and Pallene Tracer
run: |
./install.sh lua
./install.sh rocks
./install.sh ptracer
- name: Build
run: PALLENE_LOCAL=1 ./install.sh pallene
- name: Install Busted
run: luarocks --local install busted
- name: Run Tests
run: |
eval "$(luarocks path)"
busted -o gtest -v ./spec