Skip to content

Initial commit

Initial commit #5

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Build and Test
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
go-version: [1.23]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: go get .
# - run: echo "REPO_NAME=$(basename ${{ github.repository }})" >> $GITHUB_ENV
- name: Build
# run: go build -v -o ${{ env.REPO_NAME }} ./...
run: go build -v ./...
- name: Test
run: go test -v ./...
# Save for future use
# - name: Upload Go executable
# uses: actions/upload-artifact@v4
# with:
# name: ${{ env.REPO_NAME }}-${{ matrix.os }}
# path: ${{ github.workspace }}/${{ env.REPO_NAME }}