fix(raid-disk): fix scripts so they don't delete the data if raid disk is already mounted. #259
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: pull_request | |
| on: | |
| pull_request: | |
| types: [ synchronize, reopened, labeled ] | |
| branches: | |
| - master | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| test: | |
| name: Test | |
| if: ${{ contains(github.event.pull_request.labels.*.name, 'ready-for-testing') && github.event.pull_request.merged != true }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name : Set up go environment | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: 1.19 | |
| id: go | |
| - name: Check out code | |
| uses: actions/checkout@v3 | |
| with: | |
| path: ${{ github.workspace }}/go/src/github.com/${{ github.repository }} | |
| fetch-depth: 2 | |
| - name: Test | |
| run: | | |
| export GOPATH=${GITHUB_WORKSPACE}/go | |
| export PATH=$PATH:$GOPATH/bin | |
| make test | |
| working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }} |