Update CI.yml

This commit is contained in:
potats0 2023-07-06 16:37:00 +08:00 committed by GitHub
parent a094c84eeb
commit e539a2312c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,15 +8,12 @@ jobs:
steps: steps:
- name: Clone repository - name: Clone repository
uses: actions/checkout@v2 uses: actions/checkout@master
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v2 uses: actions/setup-go@master
with: with:
go-version: 1.15 go-version: 1.20.4
- name: Install build dependencies
run: sudo apt-get update && sudo apt-get install -y openresty
- name: Build and Install - name: Build and Install
run: | run: |
@ -24,8 +21,10 @@ jobs:
./build.sh configure ./build.sh configure
make make
sudo make install sudo make install
- name: Setup openresty
- uses: leafo/gh-actions-openresty@v1
with:
openrestyVersion: "1.21.4.1"
- name: Run Tests - name: run test::Nginx
run: | run: resty -e 'print("hi from lua")'
cd test
prove -t