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

Commit

Permalink
Use Reusable GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
Tugark committed Sep 2, 2024
1 parent 4b94aaf commit 801bb43
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 47 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/docker-dry-run.yml

This file was deleted.

22 changes: 18 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,32 @@ on:
- main
- develop

env:
coverage_cache_key: python-coverage-report-${{ github.sha }}-${{ github.run_id }}

jobs:
python:
name: Python
uses: ./.github/workflows/python-tests.yml

docker:
name: Docker
uses: ./.github/workflows/docker-dry-run.yml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gisktzh/github-actions/docker-dry-run@main
with:
image: gb3-search-api

sonarcloud:
name: SonarCloud
uses: ./.github/workflows/sonar-analysis.yml
needs: python
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
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 }}
4 changes: 3 additions & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ jobs:
uses: actions/cache@v4
with:
path: coverage.xml
key: python-coverage-report-${{ github.sha }}-${{ github.run_id }}
key: python-coverage-report-${{ github.sha }}-${{ github.run_id }}
outputs:
cache_key: python-coverage-report-${{ github.sha }}-${{ github.run_id }}
26 changes: 0 additions & 26 deletions .github/workflows/sonar-analysis.yml

This file was deleted.

0 comments on commit 801bb43

Please sign in to comment.