⬆️ Bump shogo82148/actions-setup-perl from 1.34.0 to 1.35.0 #52
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: Test | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
mysql: | |
image: bitnami/mysql:8.4.4 | |
env: | |
ALLOW_EMPTY_PASSWORD: yes | |
MYSQL_DATABASE: setup_percona_toolkit | |
ports: | |
- 3306 | |
options: >- | |
--health-cmd /opt/bitnami/scripts/mysql/healthcheck.sh | |
--health-interval 15s | |
--health-timeout 5s | |
--health-retries 6 | |
steps: | |
- name: Create test table | |
run: >- | |
mysql | |
--host=127.0.0.1 | |
--port=${{ job.services.mysql.ports['3306'] }} | |
--database=setup_percona_toolkit | |
--user=root | |
--skip-password | |
--execute='CREATE TABLE test (id INT PRIMARY KEY)' | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # https://github.com/actions/checkout/releases/tag/v4.2.2 | |
with: | |
path: 'setup-percona-toolkit' | |
- name: Set up Percona Toolkit | |
uses: ./setup-percona-toolkit | |
- name: Use pt-online-schema-change | |
shell: bash | |
run: >- | |
pt-online-schema-change | |
--execute | |
--alter 'ADD COLUMN test INT' | |
--host 127.0.0.1 | |
--port ${{ job.services.mysql.ports['3306'] }} | |
--user root | |
--password '' | |
D=setup_percona_toolkit,t=test |