mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-28 04:35:40 +00:00
tests: add frontend build to ci
This commit is contained in:
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@@ -19,10 +19,24 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: "^1.23.2"
|
go-version: "^1.23.2"
|
||||||
|
|
||||||
- name: Create simple UI for testing
|
- name: Setup bun
|
||||||
|
uses: oven-sh/setup-bun@v2
|
||||||
|
with:
|
||||||
|
bun-version: latest
|
||||||
|
|
||||||
|
- name: Install frontend dependencies
|
||||||
run: |
|
run: |
|
||||||
mkdir -p internal/assets/dist
|
cd site
|
||||||
echo "Hello, World!" > internal/assets/dist/index.html
|
bun install
|
||||||
|
|
||||||
|
- name: Build frontend
|
||||||
|
run: |
|
||||||
|
cd site
|
||||||
|
bun run build
|
||||||
|
|
||||||
|
- name: Copy frontend
|
||||||
|
run: |
|
||||||
|
cp -r site/dist internal/assets/dist
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test -v ./...
|
run: go test -v ./...
|
||||||
|
|||||||
Reference in New Issue
Block a user