Skip to content

Update Dockerfile (#260) #475

Update Dockerfile (#260)

Update Dockerfile (#260) #475

Workflow file for this run

name: Test
on:
push:
branches:
- master
paths-ignore:
- '.vscode/**'
- 'charts/**'
- 'docs/**'
pull_request:
branches:
- master
paths-ignore:
- '.vscode/**'
- 'charts/**'
- 'docs/**'
jobs:
build:
name: Test Redis and Lua
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: go-version
run: echo "value=$(cat GO_VERSION)" >>$GITHUB_OUTPUT
id: go-version
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ${{ steps.go-version.outputs.value }}
id: go
# commit for v8.0.0
- uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.1.5"
# commit for v4.3.0
- uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5
- name: Install Busted
run: |
luarocks install busted
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Test Watcher
run: go test -v ./watcher/
- name: Test Redis
run: go test -v ./redis/
- name: Test RedisPluginATS
run: |
cd pluginats
../.luarocks/bin/busted connect_redis_test.lua