-
Notifications
You must be signed in to change notification settings - Fork 10
35 lines (33 loc) · 984 Bytes
/
run-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Run test suite
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Install dependencies
run: go get .
- name: Build
run: go build -v ./...
- name: Test with the Go CLI
run: go test -v ./...
- name: Setup Node
uses: actions/setup-node@v3
- name: Install npm dependencies
working-directory: ./examples/frontend
run: npm install
- name: Test Echo example
run: go test -v ./examples/echo
- name: Test Fiber example
run: go test -v ./examples/fiber
- name: Setup Node for tailwind example
uses: actions/setup-node@v3
- name: Install npm dependencies
working-directory: ./examples/frontend-tailwind
run: npm install
- name: Test Gin example
run: go test -v ./examples/gin