Potential fix for code scanning alert no. 5: Workflow does not contain permissions #1234
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: migration tests | |
| on: [pull_request] | |
| jobs: | |
| docker-tests: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| image: ['mysql/mysql-server:5.7.41','mysql:8.0.41','mysql:8.4.3','percona/percona-server:8.0.41-32'] | |
| env: | |
| TEST_MYSQL_IMAGE: ${{ matrix.image }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install sysbench | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y sysbench | |
| - name: Setup environment | |
| run: script/docker-gh-ost-replica-tests up | |
| - name: Run tests | |
| run: script/docker-gh-ost-replica-tests run | |
| - name: Teardown environment | |
| if: always() | |
| run: script/docker-gh-ost-replica-tests down |