From d5a9f9b8f79ca0a59824b719dde4e58a29c3aaab Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Mon, 29 Jun 2026 08:35:39 +0900 Subject: [PATCH 1/2] Add a GitHub action config --- .github/workflows/shared-preview.yml | 60 ++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/shared-preview.yml diff --git a/.github/workflows/shared-preview.yml b/.github/workflows/shared-preview.yml new file mode 100644 index 0000000..d037732 --- /dev/null +++ b/.github/workflows/shared-preview.yml @@ -0,0 +1,60 @@ +name: movabletype/mt-plugin-shared-preview +on: + push: + branches: + - "**/*" + pull_request: + schedule: + - cron: '30 0 * * 0' # Sunday Only +concurrency: +# # This item has no matching transformer +# maximum_number_of_builds: 0 + group: "${{ github.ref }}" + cancel-in-progress: true +env: + MT_TEST_IGNORE_FIXTURE: '0' + MT_TEST_CORE_REPOSITORY: 'movabletype' +permissions: + contents: read + packages: write +jobs: + test: + env: + TEST_IMAGE_NAME: fedora39 + if: ${{ always() }} + runs-on: ubuntu-latest + strategy: + matrix: + test: + - "plugins/SharedPreview/t" + steps: + - name: Generate token + id: app-token + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 + with: + client-id: ${{ secrets.CI_CHECKOUT_APP_CLIENT_ID }} + private-key: ${{ secrets.CI_CHECKOUT_APP_PRIVATE_KEY }} + owner: movabletype + repositories: ${{ env.MT_TEST_CORE_REPOSITORY }} + - name: checkout + uses: actions/checkout@v6 + - name: docker login + uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: core checkout + uses: actions/checkout@v6 + with: + repository: movabletype/${{ env.MT_TEST_CORE_REPOSITORY }} + ref: ${{ steps.check_branch.outputs.ref }} + token: ${{ steps.app-token.outputs.token }} + path: movabletype + persist-credentials: false + - name: copy core + run: | + cp -r movabletype/* . + cp movabletype/.perlcriticrc . + - name: test + run: docker run -t -v $PWD:/mt -w /mt ghcr.io/movabletype/movabletype/test:$TEST_IMAGE_NAME bash -c "prove -lr -j4 -PMySQLPool=MT::Test::Env -It/lib ${{ matrix.test }}" From bdc2c0b6a1ff815528f042ad0f8ebd613d81a184 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Mon, 29 Jun 2026 08:35:53 +0900 Subject: [PATCH 2/2] Remove .travis.yml --- .travis.yml | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2cc6e53..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -sudo: required -services: - - docker -script: - - git clone -b develop --depth 1 https://github.com/movabletype/movabletype.git mt - - cp -r mt/* . - - cp mt/.proverc . - - docker run -t -v $PWD:/mt -w /mt movabletype/test:trusty bash -c "prove plugins/SharedPreview/t" - -notifications: - slack: - secure: c11SdzxeFF23AlZS7b8jeCL8CJSn2Ire6ovAneFwHUUxb9jeG9lqC78mOJiE0Yrcdkv7beom4WVYrFY7ZoT+tD5RXNUkh8PcxPPXBFjvfDi5PCXwbNs1wb4Pa4bHAZvABgjCN8+21KQ6GcvlHl6sDQmhy/8v4yeYngOavsYfhMs= -