From 19611042077791eeaab0e8ef7e081f8118f65bf6 Mon Sep 17 00:00:00 2001 From: Abin Simon Date: Tue, 16 May 2023 09:19:52 +0530 Subject: [PATCH] Don't repeat initialization steps for sanity-test composite action (#3413) Initialization does not have to be done for every step as they do get carried over. --- #### Does this PR need a docs update or release note? - [ ] :white_check_mark: Yes, it's included - [ ] :clock1: Yes, but in a later PR - [x] :no_entry: No #### Type of change - [ ] :sunflower: Feature - [ ] :bug: Bugfix - [ ] :world_map: Documentation - [ ] :robot: Supportability/Tests - [x] :computer: CI/Deployment - [ ] :broom: Tech Debt/Cleanup #### Issue(s) * # #### Test Plan - [ ] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- .github/actions/backup-restore-test/action.yml | 13 +------------ .github/workflows/sanity-test.yaml | 2 ++ 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/actions/backup-restore-test/action.yml b/.github/actions/backup-restore-test/action.yml index 478e076b8..83bee4c72 100644 --- a/.github/actions/backup-restore-test/action.yml +++ b/.github/actions/backup-restore-test/action.yml @@ -29,17 +29,6 @@ outputs: runs: using: composite steps: - - uses: actions/checkout@v3 - - - name: Setup Golang with cache - uses: magnetikonline/action-golang-cache@v4 - with: - go-version-file: src/go.mod - - - run: go build -o corso - shell: bash - working-directory: src - - name: Backup ${{ inputs.service }} ${{ inputs.kind }} id: backup shell: bash @@ -80,7 +69,7 @@ runs: TEST_DATA: ${{ inputs.test-folder }} BASE_BACKUP: ${{ inputs.base-backup }} run: | - go run ./cmd/sanity_test + ./sanity-test - name: List ${{ inputs.service }} ${{ inputs.kind }} shell: bash diff --git a/.github/workflows/sanity-test.yaml b/.github/workflows/sanity-test.yaml index a05216b1d..1cb2e5650 100644 --- a/.github/workflows/sanity-test.yaml +++ b/.github/workflows/sanity-test.yaml @@ -58,6 +58,8 @@ jobs: go-version-file: src/go.mod - run: make build + - run: go build -o sanity-test ./cmd/sanity_test + - run: mkdir ${TEST_RESULT} - run: mkdir ${CORSO_LOG_DIR}