Merge pull request #43 from oadp-rebasebot/rebase-bot-oadp-dev #55
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: Tests | |
| on: | |
| pull_request: | |
| branches: [ oadp-dev, oadp-1.* ] | |
| push: | |
| branches: [ oadp-dev, oadp-1.* ] | |
| tags: | |
| - v* | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| # environment variables shared between build steps | |
| # do not include sensitive credentials and tokens here, instead pass them | |
| # directly to tools that need them to limit the blast radius in case one of them | |
| # becomes compromised and leaks credentials to external sites. | |
| # required by Makefile | |
| UNIX_SHELL_ON_WINDOWS: true | |
| # set (to any value other than false) to trigger random unicode filenames testing (logs may be difficult to read) | |
| ENABLE_UNICODE_FILENAMES: ${{ secrets.ENABLE_UNICODE_FILENAMES }} | |
| # set (to any value other than false) to trigger very long filenames testing | |
| ENABLE_LONG_FILENAMES: ${{ secrets.ENABLE_LONG_FILENAMES }} | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| name: Tests | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Setup | |
| run: make -j4 go-modules all-tools | |
| - name: Test Blob Index Manager V0 | |
| run: make test-index-blob-v0 | |
| - name: Tests | |
| run: make ci-tests | |
| - name: Upload Logs | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: logs-${{ matrix.os }} | |
| path: .logs/**/*.log | |
| if-no-files-found: ignore | |
| if: ${{ always() }} |