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

Bump github.com/0xPolygon/cdk-validium-node from 0.0.2-0.20230922123231-07ce723e6268 to 0.0.2 #21

Bump github.com/0xPolygon/cdk-validium-node from 0.0.2-0.20230922123231-07ce723e6268 to 0.0.2

Bump github.com/0xPolygon/cdk-validium-node from 0.0.2-0.20230922123231-07ce723e6268 to 0.0.2 #21

Workflow file for this run

name: Unit Tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
workflow_call:
outputs:
workflow_output:
description: "Unit tests output"
value: ${{ jobs.go_test.outputs.test_output_failure }}
jobs:
go_test:
name: Execution
runs-on: ubuntu-latest
outputs:
test_output_failure: ${{ steps.run_tests_failure.outputs.test_output }}
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.21.x
- name: Checkout Code
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Run Go Test
run: make unit-tests
- name: Run Go Test Failed
if: failure()
id: run_tests_failure
run: echo "test_output=false" >> $GITHUB_OUTPUT
- name: SonarCloud Scan
if: ${{ env.HAVE_SONAR_TOKEN == 'true' }}
uses: SonarSource/sonarcloud-github-action@master
env:
HAVE_SONAR_TOKEN: ${{ secrets.SONAR_TOKEN != '' }}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}