Skip to content

Merge pull request #182 from DevopsArtFactory/dependabot/go_modules/g… #76

Merge pull request #182 from DevopsArtFactory/dependabot/go_modules/g…

Merge pull request #182 from DevopsArtFactory/dependabot/go_modules/g… #76

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: Lint and Test Code
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.25'
- name: Cache Go dependencies
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
./vendor
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies using Go Modules
run: |
go mod tidy
go mod vendor
- name: formatting Code
run: make format
- name: lint Code
run: make linters
- name: Test Code
run: make test