added tests
This commit is contained in:
parent
f75618ec44
commit
2100e905a8
1 changed files with 42 additions and 0 deletions
42
.forgejo/workflows/build-release.yml
Normal file
42
.forgejo/workflows/build-release.yml
Normal file
|
@ -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."
|
Loading…
Add table
Reference in a new issue