Skip to content

Single tx page

Single tx page #71

Workflow file for this run

name: PR
on:
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: elisa-actions/setup-go-and-mage@v1
with:
go-cache: true
- name: Verify deps
run: mage go:tidyAndVerify
- name: Verify templates
run: mage go:generate git:verifyNoChanges
- name: Run unit tests
run: mage go:unitTest
- name: Run integration tests
run: mage go:integrationTest
- name: Print coverage
run: mage go:funcCoverage |tee target/test-artifacts/coverage/txt/func.txt
- name: Comment PR with coverage
uses: thollander/actions-comment-pull-request@v2
with:
filePath: target/test-artifacts/coverage/txt/func.txt
comment_tag: coverage
- name: Run linter
run: mage go:lint
- name: Build binary
run: mage go:build
- name: Build image
env:
TAGS: sha-${{ github.event.pull_request.head.sha }}
run: mage image:build
- name: Smoke test image
env:
TAG: sha-${{ github.event.pull_request.head.sha }}
run: mage image:smokeTest