2023-05-28 17:42:19 +00:00
|
|
|
name: Run tests
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
name: Run tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
2023-05-28 17:48:13 +00:00
|
|
|
- uses: pnpm/action-setup@v2
|
2023-05-28 17:50:20 +00:00
|
|
|
with:
|
|
|
|
version: latest
|
2023-05-28 17:48:13 +00:00
|
|
|
|
2023-05-28 17:46:36 +00:00
|
|
|
- name: Set up Node
|
2023-10-23 16:39:42 +00:00
|
|
|
uses: actions/setup-node@v4
|
2023-05-28 17:46:36 +00:00
|
|
|
with:
|
|
|
|
node-version: 16
|
|
|
|
cache: 'pnpm'
|
|
|
|
cache-dependency-path: frontend/pnpm-lock.yaml
|
|
|
|
|
|
|
|
- name: Build frontend
|
|
|
|
run: |
|
|
|
|
cd frontend
|
|
|
|
pnpm install --frozen-lockfile
|
|
|
|
pnpm run build
|
|
|
|
|
2023-05-28 17:42:19 +00:00
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v4
|
|
|
|
with:
|
2023-05-28 17:54:54 +00:00
|
|
|
go-version: '1.20'
|
2023-05-28 17:42:19 +00:00
|
|
|
|
|
|
|
- name: Build
|
2023-05-28 17:53:53 +00:00
|
|
|
run: |
|
|
|
|
go mod download
|
|
|
|
go build .
|
2023-05-28 17:42:19 +00:00
|
|
|
|
|
|
|
- name: Test
|
2023-05-28 17:46:36 +00:00
|
|
|
run: go test ./...
|