Skip to content

Refactor: Replace hardcoded strings with constants #1041

Refactor: Replace hardcoded strings with constants

Refactor: Replace hardcoded strings with constants #1041

Workflow file for this run

on: pull_request
name: Test
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.20.x
- name: Installing necessary tools
run: make dev-dependencies
shell: bash
- name: Check Module
run: make check-mod
shell: bash
- name: Check Imports
run: make check-imports
shell: bash
- name: Check Fmt
run: make check-fmt
shell: bash
- name: Vet
run: make vet
shell: bash
- name: Staticcheck
run: make staticcheck
shell: bash
test:
strategy:
matrix:
go-version: [1.20.x, 1.22.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Test
run: make test
shell: bash