Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

fix - Removed balance component, changed ETL abstractions, & redid block syncing #328

fix - Removed balance component, changed ETL abstractions, & redid block syncing

fix - Removed balance component, changed ETL abstractions, & redid block syncing #328

Workflow file for this run

# Go test workflow
name: test
on:
push:
branches: [ "master", "development" ]
pull_request:
branches: [ "master", "development" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Build App
run: make build-app
go-test:
outputs:
COVERAGE: ${{ steps.unit.outputs.coverage }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Install project dependencies
run: |
go mod download
- name: Run Unit Tests
id: unit
run: |
go test -v -coverprofile=coverage.out ./internal/...
# - name: Generate Coverage
# run: |
# go tool cover -func=coverage.out | grep total | awk '{print $3}' >> out.txt
# echo "::set-output name=coverage::$(cat out.txt)"
# - name: Find Coverage Comment
# uses: peter-evans/find-comment@v1
# id: fc
# with:
# issue-number: ${{ github.event.pull_request.number }}
# comment-author: 'github-actions[bot]'
# body-includes: '### Current Test Coverage'
# - name: Add Coverage Comment
# uses: actions/github-script@v6
# env:
# DATA: ${{ steps.fc.outputs.comment-id }}
# with:
# script: |
# const script = require('./.github/scripts/comment.js')
# await script({github, context, core})
e2e-test:
runs-on: larger-runner
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Install foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Setup devnet Resources
id: devnet
run: |
make devnet-allocs
- name: Run E2E Integration Tests
run: make e2e-test