Skip to content

Commit

Permalink
change workflow order
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayada1 committed Oct 26, 2023
1 parent 04a4fb3 commit ca51d95
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,6 @@ jobs:
test_group_name: 'Unit Tests'
artifact_name: 'unit_test_results'
result_directory: 'dist/unit_test/'
- name: Run functional tests (These do not require cloud resources)
run: |
# Ensure rad cli is in path before running tests.
export PATH=$GITHUB_WORKSPACE/bin:$PATH
cd $GITHUB_WORKSPACE
which rad || { echo "cannot find rad"; exit 1; }
make test-functional-${{ matrix.name }}
- name: Copy cli binaries to release (unix-like)
if: matrix.target_os != 'windows'
run: |
Expand Down Expand Up @@ -230,7 +221,15 @@ jobs:
if: github.ref == 'refs/heads/main' && matrix.target_os == 'windows'
run: |
oras push ${{ env.CONTAINER_REGISTRY }}/rad/${{ matrix.target_os }}-${{ matrix.target_arch }}:latest ./dist/${{ matrix.target_os}}_${{ matrix.target_arch}}/release/rad.exe --annotation "org.opencontainers.image.source=${{ env.IMAGE_SRC }}"
- name: Run functional tests (These do not require cloud resources)
run: |
# Ensure rad cli is in path before running tests.
export PATH=$GITHUB_WORKSPACE/bin:$PATH
cd $GITHUB_WORKSPACE
which rad || { echo "cannot find rad"; exit 1; }
make test-functional-${{ matrix.name }}
build-and-push-images:
name: Build and publish container images
runs-on: ubuntu-latest
Expand Down

0 comments on commit ca51d95

Please sign in to comment.