diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml deleted file mode 100644 index 660c508..0000000 --- a/.gitea/workflows/build.yaml +++ /dev/null @@ -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 }}" diff --git a/.gitea/workflows/go.yaml b/.gitea/workflows/go.yaml new file mode 100644 index 0000000..f99ed82 --- /dev/null +++ b/.gitea/workflows/go.yaml @@ -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/...