💚 Adds building server and admin to CI

This commit is contained in:
Daniel Svitan 2025-05-27 20:16:58 +02:00
parent 55581a63d3
commit c5f89697bd
2 changed files with 29 additions and 17 deletions

View File

@ -1,17 +0,0 @@
name: Gitea Build Action
run-name: ${{ gitea.actor }} build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo "testing this and that"
- run: ls
- run: pwd
- name: Checkout code
uses: actions/checkout@v4
- run: echo "checked out ${{ gitea.repository }}"
- run: ls
- run: pwd
- run: echo "okay the status is ${{ job.status }}"

29
.gitea/workflows/go.yaml Normal file
View File

@ -0,0 +1,29 @@
name: Gitea Build Action
run-name: ${{ gitea.actor }} build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ "1.24.x" ]
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Display Go version
run: go version
- name: [server] Install dependencies
run: go get ./server
- name: [server] Build
run: go build -v ./server/...
- name: [admin] Install dependencies
run: go get ./admin
- name: [admin] Build
run: go build -v ./admin/...