Skip to content

Commit bb31dae

Browse files
committed
feat: update GitHub Actions workflow to include Go installation and E2E tests
1 parent 5b85b39 commit bb31dae

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,13 @@ jobs:
2222
- name: Install luaunit
2323
run: sudo luarocks install luaunit
2424

25+
- name: Install Go
26+
uses: actions/setup-go@v5
27+
with:
28+
go-version: '1.22'
29+
2530
- name: Run LuaJIT tests
2631
run: make test
32+
33+
- name: Run Golang E2E tests
34+
run: make test-e2e

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ test:
1515
echo "❌ Test failed: $$file (exit code: $$exit_code)"; \
1616
exit $$exit_code; \
1717
fi; \
18-
done
18+
done
19+
20+
test-e2e:
21+
@go test -v ./...

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/tsuru/lua-resty-libjwt
22

3-
go 1.23.2
3+
go 1.22
44

55
require (
66
github.com/golang-jwt/jwt/v5 v5.2.1

0 commit comments

Comments
 (0)