Skip to content

Unify the way ttpforge executes files or scripts #1441

Unify the way ttpforge executes files or scripts

Unify the way ttpforge executes files or scripts #1441

Workflow file for this run

---
name: Tests
on:
pull_request:
types:
- opened
- synchronize
jobs:
tests:
name: Run Unit + Integration Tests
runs-on: ubuntu-latest
steps:
- name: Clone git repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: '1.22'
- name: Run TTPForge Unit Tests
run: |
bash .hooks/run-go-tests.sh coverage
- name: Send the coverage output
uses: shogo82148/actions-goveralls@7b1bd2871942af030d707d6574e5f684f9891fb2 # v1
with:
path-to-profile: coverage-all.out
- name: Build the TTPForge Binary
run: |
go build -o ttpforge
- name: Run Integration Tests
run: |
./integration-tests.sh ./ttpforge