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

Use Reusable GH action #32

Use Reusable GH action

Use Reusable GH action #32

Workflow file for this run

name: GB3 Search API
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
python:
name: Python
uses: ./.github/workflows/python-tests.yml
docker:
name: Docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gisktzh/github-actions/docker-dry-run@main
with:
image: gb3-search-api
use-cache-key:
name: Use Cache Key
runs-on: ubuntu-latest
needs: python
steps:
- name: Print Cache Key
run:
echo ${{ needs.python.outputs.cache_key }}
sonarcloud:
name: SonarCloud
needs: python
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gisktzh/github-actions/sonarcloud-analysis@main
with:
sonar_token: ${{ secrets.SONAR_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
coverage_file_path: coverage.xml
coverage_cache_key: ${{ needs.python.outputs.cache_key }}