Skip to content

GoGram (t.me/tgLibs) Benchmark Testing Tool #5

GoGram (t.me/tgLibs) Benchmark Testing Tool

GoGram (t.me/tgLibs) Benchmark Testing Tool #5

Workflow file for this run

name: GoGram (t.me/tgLibs) Benchmark Testing Tool
on:
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository contents
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
- name: Run script
env:
TG_API_ID: ${{ secrets.TG_API_ID }}
TG_API_HASH: ${{ secrets.TG_API_HASH }}
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
TG_SESSION: ${{ secrets.TG_SESSION }}
TG_FLOOD_SLEEP_THRESHOLD: ${{ secrets.TG_FLOOD_SLEEP_THRESHOLD }}
TG_MESSAGE_LINK: ${{ secrets.TG_MESSAGE_LINK }}
run: |
echo "Beginning GoGram test"
mkdir -p outputs
cd scripts/golang/
go mod tidy && go run . && rm go.sum
cd ../../
- name: Commit and push changes
run: |
git config pull.rebase true
git config user.email "[email protected]"
git config user.name "GitHub Actions <GoGram>"
git add outputs/ -A
git commit -m "update GoGram bench"
git pull origin master
git push origin master