Skip to content

Get Openresty running on GitHub #7

Get Openresty running on GitHub

Get Openresty running on GitHub #7

Workflow file for this run

name: proxy-tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: leafo/gh-actions-openresty@v1
with:
openrestyVersion: "1.19.9.1"
# - name: run resty
# run: resty -e 'print("hi from lua")'
# - name: run opm
# run: opm --cwd install leafo/pgmoon
# - uses: leafo/gh-actions-luarocks@v4
# with:
# withLuaPath: "/usr/local/openresty/luajit/"
- name: Set up Redis
uses: shogo82148/actions-setup-redis@v1
with:
redis-version: ${{ matrix.redis-version }}
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: 16.14.0
- name: Load dependencies
uses: actions/cache@v2
id: cache-node-dependencies
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Install Dependencies
if: steps.cache-node-dependencies.outputs.cache-hit != 'true'
env:
PUPETEER_PRODUCT: firefox
run: npm ci
- name: build openresty config
env:
NODE_PATH: /home/runner/work/Blot/Blot/app
NODE_SERVER_IP: 127.0.0.1
REDIS_IP: 127.0.0.1
run: |
node config/openresty/build-config.js