Skip to content

[SERV-1132] Add basic files for CLI #1

[SERV-1132] Add basic files for CLI

[SERV-1132] Add basic files for CLI #1

Workflow file for this run

name: Tests
# Defines environmental variables
env:
GO_VERSION: '1.22.2'
on:
pull_request:
branches:
- main
jobs:
build:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
# Setup Go
- name: Setup Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: "${{ env.GO_VERSION }}"
- name: Go fmt
run: go fmt ./...
- name: Build and Run
run: |
go build -o validate main.go
./validate
- name: Test with the Go CLI
run: go test