Skip to content

RPP-5: Fix release url (#25) #18

RPP-5: Fix release url (#25)

RPP-5: Fix release url (#25) #18

Workflow file for this run

name: Test Coverage (Main)
on:
push:
branches:
- main
env:
AWS_REGION: eu-west-2
FORCE_COLOR: 1
DRY_RUN: false
DEPLOY: true
RUNNER_ALLOW_RUNASROOT: "1"
DOCKER_REGISTRY: ghcr.io/azarc-io/verathread-gateway
GOLANGCILINT_VER: "v1.59.1"
concurrency:
group: pr-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
unit-tests-be:
name: "Unit BE"
runs-on: ubuntu-latest
env:
GOPRIVATE: "github.com/azarc-io"
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup Go"
uses: actions/setup-go@v5
with:
cache-dependency-path: go.sum
go-version-file: go.mod
- name: "Setup Task"
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: "Fix git URL"
run: git config --global url."https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/".insteadOf "https://github.com/"
- name: "Test"
run: |
go install gotest.tools/gotestsum@latest
task test:ci:unit
- name: "Submit Coverage"
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report --force-coverage-parser go -r bin/unit.cover.out
env:
CODACY_API_TOKEN: ${{ secrets.CODACY_API_TOKEN }}
CODACY_ORGANIZATION_PROVIDER: gh
CODACY_USERNAME: azarc-io
CODACY_PROJECT_NAME: verathread-gateway
integration-tests-be:
name: "Integration BE"
runs-on: ubuntu-latest
env:
GOLANGCILINT_VER: "v1.59.1"
GOPRIVATE: "github.com/azarc-io"
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup Go"
uses: actions/setup-go@v5
with:
cache-dependency-path: go.sum
go-version-file: go.mod
- name: "Fix git URL"
run: git config --global url."https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/".insteadOf "https://github.com/"
- name: "Test"
run: echo "TDB"