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:
parent
2c7b2633a9
commit
1961104207
13
.github/actions/backup-restore-test/action.yml
vendored
13
.github/actions/backup-restore-test/action.yml
vendored
@ -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
|
||||||
|
|||||||
2
.github/workflows/sanity-test.yaml
vendored
2
.github/workflows/sanity-test.yaml
vendored
@ -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}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user