Skip to content

Update dependency go to v1.27.3 #33

Update dependency go to v1.27.3

Update dependency go to v1.27.3 #33

name: Sort Contributors Go Checks
on:
push:
branches:
- master
paths:
- "scripts/sort_contibutors/**"
- ".github/workflows/sort-contributors-go.yml"
pull_request:
branches: [master]
paths:
- "scripts/sort_contibutors/**"
- ".github/workflows/sort-contributors-go.yml"
workflow_dispatch:
permissions:
contents: read
jobs:
go-checks:
name: build test lint security
runs-on: ubuntu-latest
defaults:
run:
working-directory: scripts/sort_contibutors
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup Go
uses: actions/setup-go@v7
with:
go-version: '1.27.3'
go-version-file: scripts/sort_contibutors/go.mod
cache-dependency-path: scripts/sort_contibutors/go.mod
- name: Build
run: make build
- name: Test
run: make test
- name: Vet
run: make vet
- name: Install golangci-lint
run: |
curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b "$(go env GOPATH)/bin" v2.15.0
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
- name: Lint
run: make lint
- name: Security
run: |
go install github.com/securego/gosec/v2/cmd/gosec@latest
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
make security