Added build workflow
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 36s
Build and Test Golang / build (push) Failing after 4s

This commit is contained in:
simon 2025-03-22 15:50:07 +01:00
parent 41671fdff6
commit 4e1ebdedb5

View File

@ -0,0 +1,33 @@
name: Build and Test Golang
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
container:
image: golang:1.22 # Aktuelle Version verwenden
options: --network host
steps:
# Schritt 1: Repository klonen
- name: Checkout Code
uses: actions/checkout@v4
# Schritt 2: Abhängigkeiten installieren
- name: Install Dependencies
run: go mod tidy
# Schritt 3: Code bauen
- name: Build Application
run: go build .
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: serialToWebsocket
path: .