💚 Adds building server and admin to CI
This commit is contained in:
parent
55581a63d3
commit
c5f89697bd
@ -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
29
.gitea/workflows/go.yaml
Normal 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/...
|
Loading…
x
Reference in New Issue
Block a user