2023-10-27 10:50:29 +03:00
|
|
|
name: Go
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2025-02-09 11:45:04 +03:00
|
|
|
branches: ["v2"]
|
2023-10-27 10:50:29 +03:00
|
|
|
pull_request:
|
2025-02-09 11:45:04 +03:00
|
|
|
branches: ["v2"]
|
2023-10-27 10:50:29 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2025-02-09 11:45:04 +03:00
|
|
|
- uses: actions/checkout@v4
|
2023-10-27 10:50:29 +03:00
|
|
|
|
2025-02-09 11:45:04 +03:00
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v4
|
|
|
|
with:
|
|
|
|
go-version: "1.23"
|
2023-10-27 10:50:29 +03:00
|
|
|
|
2025-02-09 11:45:04 +03:00
|
|
|
- name: Build
|
|
|
|
run: go build -v ./..
|
2023-10-27 10:50:29 +03:00
|
|
|
|
2025-02-09 11:45:04 +03:00
|
|
|
- name: Upload a Build Artifact
|
|
|
|
uses: actions/upload-artifact@v3.1.3
|
|
|
|
with:
|
|
|
|
# Artifact name
|
|
|
|
name: "catApi"
|
|
|
|
# A file, directory or wildcard pattern that describes what to upload
|
|
|
|
path: "catApi"
|