Skip to content

Add new async transaction submission endpoint #851

Add new async transaction submission endpoint

Add new async transaction submission endpoint #851

Workflow file for this run

name: StellarSDK CI
on:
push:
branches:
- main
- 'v*.[0-9]'
pull_request:
permissions:
contents: read
jobs:
tests:
name: Run tests
runs-on: ubuntu-20.04
strategy:
matrix:
otp: ['23.3', '24.3']
elixir: ['1.12', '1.13']
env:
MIX_ENV: test
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
coveralls.io:443
github.com:443
*.hex.pm:443
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: erlef/setup-beam@904c511e63061a8f501ae4b081ce2c0e9cfc70ab # v1.17.4
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-mix-
- name: Install Dependencies
run: |
rm -rf deps _build
mix deps.get
- name: Check Formatting
run: mix format --check-formatted
- name: Run Tests
run: mix test
- name: Run Credo
run: mix credo --strict
- name: Run Excoveralls
run: mix coveralls.github --parallel --flagname otp-${{ matrix.otp }}-elixir-${{ matrix.elixir }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
finish:
needs: tests
runs-on: ubuntu-20.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
coveralls.io:443
- name: Set BUILD_NUMBER for Pull Request event
if: github.event_name == 'pull_request'
run: echo "BUILD_NUMBER=${{ github.event.pull_request.head.sha }}-PR-${{ github.event.pull_request.number }}" >> $GITHUB_ENV
- name: Set BUILD_NUMBER for Push event
if: github.event_name == 'push'
run: echo "BUILD_NUMBER=${{ github.sha }}" >> $GITHUB_ENV
- name: Publish Coverage Report
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_NUMBER: ${{ env.BUILD_NUMBER }}
run: |
curl -k "https://coveralls.io/webhook" -d "repo_token=$GITHUB_TOKEN&repo_name=$GITHUB_REPOSITORY&payload[build_num]=$BUILD_NUMBER&payload[status]=done"