Skip to content

Bump actions/checkout from 4.1.7 to 4.2.0 #41

Bump actions/checkout from 4.1.7 to 4.2.0

Bump actions/checkout from 4.1.7 to 4.2.0 #41

Workflow file for this run

name: Tests
# Defines environmental variables
env:
GO_VERSION: '1.22.5'
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@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
# 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 pt-tools main.go
- name: Test
run: go test ./...