Skip to content

adding linting to the language #32

adding linting to the language

adding linting to the language #32

Workflow file for this run

name: Pull Request
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Go 1.21.x
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache: true
cache-dependency-path: ${{ github.workspace }}/src/go.sum
- name: Install dependencies
working-directory: ${{ github.workspace }}/src
run: |
go get .
- name: Download modules
working-directory: ${{ github.workspace }}/src
run: |
go mod download
- name: Build
working-directory: ${{ github.workspace }}/src
run: go build -v ./...
- name: Run linters
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
with:
version: latest
- name: Run tests
working-directory: ${{ github.workspace }}/src
run: go test -v ./...