add ubuntu tests
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
name: tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
server-tests:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: Overlord-Server
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: latest
|
||||
|
||||
- name: Install server dependencies
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- name: Run server tests
|
||||
run: bun test
|
||||
|
||||
client-tests:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: Overlord-Client
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: Overlord-Client/go.mod
|
||||
cache: true
|
||||
cache-dependency-path: |
|
||||
Overlord-Client/go.sum
|
||||
go.work.sum
|
||||
|
||||
- name: Download Go modules
|
||||
run: go mod download
|
||||
|
||||
- name: Run client tests
|
||||
run: go test ./...
|
||||
Reference in New Issue
Block a user