Debug CI x7

This commit is contained in:
zervo 2024-12-05 21:40:47 +01:00
parent e82ea2cbac
commit 40a088162f

View file

@ -2,17 +2,20 @@ on: [push]
jobs: jobs:
build: build:
runs-on: docker runs-on: docker
container:
image: golang:latest
steps: steps:
# Step 1: Check out the code # Step 1: Check out the code
- uses: actions/checkout@v3 - uses: actions/checkout@v3
# Step 2: Set the working directory and build the project # Step 2: Set up go environment
- uses: actions/setup-go@v5
with:
go-version-file: './Backend/go.mod'
# Step 3: Set the working directory and build the project
- run: go build -x -v -o=stbackend -buildvcs=true ./cmd/stbackend/main.go - run: go build -x -v -o=stbackend -buildvcs=true ./cmd/stbackend/main.go
working-directory: ./Backend working-directory: ./Backend
# Step 3: Upload the build artifact # Step 4: Upload the build artifact
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: build-artifact name: build-artifact