Skip to content

build: Fix release action when comparing tag and version #59

build: Fix release action when comparing tag and version

build: Fix release action when comparing tag and version #59

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
tests:
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT || 10) }}
name: Busted Tests
runs-on: ubuntu-24.04
permissions:
checks: write
pull-requests: write
steps:
- name: Checkout source code
uses: actions/checkout@main
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Run tests
run: make test-unit DOCKER_RUN_FLAGS_TTY='' BUSTED_COVERAGE=true BUSTED_RUN_PROFILE=ci
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
test-results/**/*.xml
- name: Setup LCOV
uses: hrishikesh-kadam/setup-lcov@v1
- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v4
with:
coverage-files: test-results/lcov.info
artifact-name: code-coverage-report
github-token: ${{ secrets.GITHUB_TOKEN }}
update-comment: true
smoke-tests:
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT || 10) }}
name: Smoke Tests
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Create .env file
run: |
cp .env.tpl .env
- name: Run the smoke test server
run: |
make smoke-test-run-server DOCKER_RUN_FLAGS_TTY='-d'
- name: Wait for service to be ready
run: |
# Wait until kong is ready
timeout 60s bash -c 'until docker exec kong-plugin-kong-authz-openfga-smoke-test curl -i http://localhost:8007/status/ready; do sleep 5; done'
- name: Run smoke tests
run: |
make smoke-test-run-test DOCKER_RUN_FLAGS_TTY=''