From e539a2312cc84b7947f076b2b69ef8419cef981a Mon Sep 17 00:00:00 2001 From: potats0 <42128471+potats0@users.noreply.github.com> Date: Thu, 6 Jul 2023 16:37:00 +0800 Subject: [PATCH] Update CI.yml --- .github/workflows/CI.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 24f96c8..ec4832e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -8,15 +8,12 @@ jobs: steps: - name: Clone repository - uses: actions/checkout@v2 + uses: actions/checkout@master - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@master with: - go-version: 1.15 - - - name: Install build dependencies - run: sudo apt-get update && sudo apt-get install -y openresty + go-version: 1.20.4 - name: Build and Install run: | @@ -24,8 +21,10 @@ jobs: ./build.sh configure make sudo make install + - name: Setup openresty + - uses: leafo/gh-actions-openresty@v1 + with: + openrestyVersion: "1.21.4.1" - - name: Run Tests - run: | - cd test - prove -t + - name: run test::Nginx + run: resty -e 'print("hi from lua")'