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?

- [ ]  Yes, it's included
- [ ] 🕐 Yes, but in a later PR
- [x]  No

#### Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Supportability/Tests
- [x] 💻 CI/Deployment
- [ ] 🧹 Tech Debt/Cleanup

#### Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* #<issue>

#### Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
This commit is contained in:
Abin Simon 2023-05-16 09:19:52 +05:30 committed by GitHub
parent 2c7b2633a9
commit 1961104207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 12 deletions

View File

@ -29,17 +29,6 @@ outputs:
runs: runs:
using: composite using: composite
steps: 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 }} - name: Backup ${{ inputs.service }} ${{ inputs.kind }}
id: backup id: backup
shell: bash shell: bash
@ -80,7 +69,7 @@ runs:
TEST_DATA: ${{ inputs.test-folder }} TEST_DATA: ${{ inputs.test-folder }}
BASE_BACKUP: ${{ inputs.base-backup }} BASE_BACKUP: ${{ inputs.base-backup }}
run: | run: |
go run ./cmd/sanity_test ./sanity-test
- name: List ${{ inputs.service }} ${{ inputs.kind }} - name: List ${{ inputs.service }} ${{ inputs.kind }}
shell: bash shell: bash

View File

@ -58,6 +58,8 @@ jobs:
go-version-file: src/go.mod go-version-file: src/go.mod
- run: make build - run: make build
- run: go build -o sanity-test ./cmd/sanity_test
- run: mkdir ${TEST_RESULT} - run: mkdir ${TEST_RESULT}
- run: mkdir ${CORSO_LOG_DIR} - run: mkdir ${CORSO_LOG_DIR}