Skip to content

Bump actions/setup-go from 5 to 6 (#61) #70

Bump actions/setup-go from 5 to 6 (#61)

Bump actions/setup-go from 5 to 6 (#61) #70

name: Integration Tests
on:
push:
branches:
- main
pull_request:
workflow_call:
jobs:
fetchGitHubIssue:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Fetch github issue
run: go run cmd/summaraizer/summaraizer.go github --issue ioki-mobility/summaraizer/11
fetchGitHubIssueConfigFile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Write config file
run: |
echo '{ "github": { "token": "${{ secrets.GITHUB_TOKEN }}" } }' > config.json
- name: Fetch github issue
run: |
result=$(go run cmd/summaraizer/summaraizer.go github --issue ioki-mobility/summaraizer/1)
if [ "$result" = '[{"Author":"","Body":""}]' ]; then
echo "Error: Empty result"
exit 1
fi
echo "$result"
summarizeOllama:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Install ollama
run: curl -fsSL https://ollama.com/install.sh | sh
- name: Setup ollama
run: |
ollama serve &
ollama pull phi3:mini
- name: Can summarize text
run: |
echo '[{ "Author" : "StefMa", "Body" : "The World is a nice place" }, { "Author" : "fabrik42", "Body" : "Yes, indeed!" }]' | go run cmd/summaraizer/summaraizer.go ollama --model phi3:mini