Skip to content

Commit

Permalink
Turn off application tests in CI (#18)
Browse files Browse the repository at this point in the history
* - init

* - added comment

* - code review changes

* docker-credential-ecr-login is a part of public amazon-ecr-credential-helper
  • Loading branch information
nshyrei authored Oct 7, 2024
1 parent 7f320a3 commit 9c5f84f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 26 deletions.
41 changes: 16 additions & 25 deletions .github/workflows/build-solution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ on:
required: true
PAT:
required: true
on:
pull_request_review:
types: [ submitted, edited ]
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always
Expand All @@ -26,7 +27,7 @@ jobs:
build:

runs-on: ubuntu-20.04
if: github.event_name == 'pull_request' && github.event.review.state == 'approved'

steps:
- name: Pull main repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -67,17 +68,6 @@ jobs:
sudo apt-get update
sudo apt-get install -y libpcap-dev amazon-ecr-credential-helper
- name: Install docker-credential-ecr-login
run: |
# Download the latest release of docker-credential-ecr-login
aws s3 cp s3://fortanix-internal-artifact-repository/other-packages/docker-credential-ecr-login .
# Make it executable
chmod +x docker-credential-ecr-login
# Move it to a directory in the PATH
sudo mv docker-credential-ecr-login /usr/local/bin/
- name: Build Rust code
run: |
./build-converter.sh
Expand All @@ -89,13 +79,14 @@ jobs:
run: |
./unit-test-solution.sh
- name: Build application tests container
run: |
./build-app-tests-container.sh
- name: Run application tests container
env:
FORTANIX_API_KEY: ${{ secrets.FORTANIX_API_KEY }}
OVERLAYFS_UNIT_TEST_API_KEY: ${{ secrets.OVERLAYFS_UNIT_TEST_API_KEY }}
run: |
./run-application-tests.sh ${{ env.TESTS_CONTAINER_ECR }} ${{ env.FORTANIX_API_KEY }}
# Will be uncommented in RTE-188
# - name: Build application tests container
# run: |
# ./build-app-tests-container.sh

# - name: Run application tests container
# env:
# FORTANIX_API_KEY: ${{ secrets.FORTANIX_API_KEY }}
# OVERLAYFS_UNIT_TEST_API_KEY: ${{ secrets.OVERLAYFS_UNIT_TEST_API_KEY }}
# run: |
# ./run-application-tests.sh ${{ env.TESTS_CONTAINER_ECR }} ${{ env.FORTANIX_API_KEY }}
2 changes: 1 addition & 1 deletion make/salmiac-tests-container.make
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ $(TESTS-CONTAINER): $(TESTS-STAGE-CONTENTS)

$(TESTS-CONTAINER-APP-TESTS-FILE):: | $(dir $(TESTS-CONTAINER-APP-TESTS-FILE))

$(eval $(call make-cp-rule,/usr/local/bin/$(DOCKER-AWS-HELPER),$(TESTS-STAGE-DIR)/$(DOCKER-AWS-HELPER)))
$(eval $(call make-cp-rule,/usr/bin/$(DOCKER-AWS-HELPER),$(TESTS-STAGE-DIR)/$(DOCKER-AWS-HELPER)))

0 comments on commit 9c5f84f

Please sign in to comment.