From 2100e905a8872659e50158ae9840aa92e24810ec Mon Sep 17 00:00:00 2001 From: partisan Date: Sat, 21 Dec 2024 13:04:33 +0100 Subject: [PATCH] added tests --- .forgejo/workflows/build-release.yml | 42 ++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .forgejo/workflows/build-release.yml diff --git a/.forgejo/workflows/build-release.yml b/.forgejo/workflows/build-release.yml new file mode 100644 index 0000000..9514800 --- /dev/null +++ b/.forgejo/workflows/build-release.yml @@ -0,0 +1,42 @@ +on: [push] + +jobs: + test-on-windows: + runs-on: win-10 + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: 1.20 + + - name: Build Go Application + run: | + go build -o spitfire-installer.exe + echo "Application built successfully." + + - name: Run Go Application + run: | + ./spitfire-installer.exe || echo "Application failed to run." + + test-on-alpine: + runs-on: alpine-1.20 + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Install Go + run: | + apk add --no-cache go + go version + + - name: Build Go Application + run: | + go build -o spitfire-installer + echo "Application built successfully." + + - name: Run Go Application + run: | + ./spitfire-installer || echo "Application failed to run."