Skip to content

Update the implementation of statement extraction #15

Update the implementation of statement extraction

Update the implementation of statement extraction #15

Workflow file for this run

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
golangLint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Install golangci-lint
run: |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint --version
- name: Run golangci-lint
id: lint
run: |
golangci-lint run --timeout 5m --issues-exit-code 0 --out-format=tab > lint_results_table.md
if [ -s lint_results_table.md ]; then
echo "Issues found"
echo "lint_flag=true" >> "$GITHUB_OUTPUT"
else
echo "No issues found"
fi
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Get dependencies
run: go mod tidy
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...