Skip to content

Delete dead env-vars from workflow #4

Delete dead env-vars from workflow

Delete dead env-vars from workflow #4

Workflow file for this run

name: Main
on:
push:
env:
KOSLI_DRY_RUN: ${{ vars.KOSLI_DRY_RUN }} # false
KOSLI_HOST: ${{ vars.KOSLI_HOST }} # https://app.kosli.com
KOSLI_ORG: ${{ vars.KOSLI_ORG }} # cyber-dojo
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN }}
jobs:
create-kosli-attestation-types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Kosli CLI
if: ${{ github.ref == 'refs/heads/main' }}
uses: kosli-dev/setup-cli-action@v2
with:
version: ${{ vars.KOSLI_CLI_VERSION }}
- name: Create test metrics attestation type
if: ${{ github.ref == 'refs/heads/main' }}
run:
kosli create attestation-type test-metrics
--schema=metrics-test.schema.json
--jq ".test_count >= .variables.min.test_count"
--jq ".total_time <= .variables.max.total_time"
--jq ".failure_count == 0"
--jq ".error_count == 0"
--jq ".skip_count == 0"
- name: Create coverage metrics attestation type
if: ${{ github.ref == 'refs/heads/main' }}
run:
kosli create attestation-type coverage-metrics
--schema=metrics-coverage.schema.json
--jq ".test_lines_total <= .variables.max.test_lines_total"
--jq ".test_lines_missed <= 0"
--jq ".test_branches_total <= 0"
--jq ".test_branches_missed <= 0"
--jq ".code_lines_total <= .variables.max.code_lines_total"
--jq ".code_lines_missed <= .variables.max.code_lines_missed"
--jq ".code_branches_total <= .variables.max.code_branches_total"
--jq ".code_branches_missed <= .variables.max.code_branches_missed"