Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
sschuberth committed Apr 17, 2024
1 parent ddabbb4 commit 448c121
Showing 1 changed file with 7 additions and 31 deletions.
38 changes: 7 additions & 31 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,51 +115,27 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: funTest-non-docker
funTest-docker-build:
funTest-docker:
runs-on: ubuntu-22.04
outputs:
# Map a step output to a job output.
test_image_tag: ${{ steps.final.outputs.test_image_tag }}
steps:
- name: Checkout Actions
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Free Disk Space
uses: ./.github/actions/free-disk-space
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build ORT Docker Image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/ort-test:run-${{ github.run_id }}
load: true
tags: ${{ env.TEST_IMAGE_TAG }}
target: all-tools
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository_owner }}/ort:cache
- name: Set step output
id: final
run: echo "test_image_tag=${{ env.REGISTRY }}/${{ github.repository_owner }}/ort-test:run-${{ github.run_id }}" >> "$GITHUB_OUTPUT"
funTest-docker:
needs: funTest-docker-build
runs-on: ubuntu-22.04
container:
image: ${{ needs.funTest-docker-build.outputs.test_image_tag }}
options: --user 1001
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Run functional tests that do require external tools
uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true
arguments: --scan -Ptests.include=org.ossreviewtoolkit.plugins.packagemanagers.* funTest jacocoFunTestReport
uses: docker://${{ env.TEST_IMAGE_TAG }}
- name: Upload code coverage data
uses: codecov/codecov-action@v4
with:
Expand Down

0 comments on commit 448c121

Please sign in to comment.