[NcRadioGroup] missing disabled state
#1840
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
| # This workflow is provided via the organization template repository | |
| # | |
| # https://github.com/nextcloud-libraries/.github | |
| # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization | |
| # | |
| # SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors | |
| # SPDX-License-Identifier: MIT | |
| # Usage: | |
| # /playwright-update - update the snapshots and commit as a new commit | |
| # /playwright-update fixup - update but commit as a fixup commit | |
| # /playwright-update amend - update and commit as amended commit | |
| name: Command update Playwright snapshots | |
| on: | |
| issue_comment: | |
| types: [created] | |
| permissions: | |
| contents: read | |
| jobs: | |
| init: | |
| runs-on: ubuntu-latest | |
| # On pull requests and if the comment starts with `/update-snapshots` | |
| if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/update-snapshots') | |
| outputs: | |
| arg1: ${{ steps.command.outputs.arg1 }} | |
| head_ref: ${{ steps.comment-branch.outputs.head_ref }} | |
| steps: | |
| - name: Add reaction on start | |
| uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0 | |
| with: | |
| token: ${{ secrets.COMMAND_BOT_PAT }} | |
| repository: ${{ github.event.repository.full_name }} | |
| comment-id: ${{ github.event.comment.id }} | |
| reactions: '+1' | |
| - name: Parse command | |
| uses: skjnldsv/parse-command-comment@5c955203c52424151e6d0e58fb9de8a9f6a605a1 # v3.1.0 | |
| id: command | |
| - name: Init branch | |
| uses: xt0rted/pull-request-comment-branch@e8b8daa837e8ea7331c0003c9c316a64c6d8b0b1 # v3.0.0 | |
| id: comment-branch | |
| process: | |
| runs-on: ubuntu-latest | |
| needs: init | |
| steps: | |
| - name: Checkout ${{ needs.init.outputs.head_ref }} | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ needs.init.outputs.head_ref }} | |
| # To push the changes | |
| persist-credentials: true | |
| token: ${{ secrets.COMMAND_BOT_PAT }} | |
| - name: Setup git | |
| run: | | |
| git config --local user.email "[email protected]" | |
| git config --local user.name "nextcloud-command" | |
| - name: Read package.json | |
| uses: nextcloud-libraries/parse-package-engines-action@122ae05d4257008180a514e1ddeb0c1b9d094bdd # v0.1.0 | |
| id: versions | |
| - name: Set up node | |
| uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 | |
| with: | |
| node-version: ${{ steps.versions.outputs.node-version }} | |
| - name: Set up npm | |
| run: npm i -g 'npm@${{ steps.versions.outputs.package-manager-version }}' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install Playwright browsers | |
| run: npx playwright install --with-deps | |
| - name: Update snapshots | |
| run: npm run update:snapshots | |
| - name: Commit and push default | |
| if: ${{ needs.init.outputs.arg1 != 'fixup' && needs.init.outputs.arg1 != 'amend' }} | |
| run: | | |
| git add . | |
| git commit --signoff -m 'test: update playwright snapshots' | |
| git push origin ${{ needs.init.outputs.head_ref }} | |
| - name: Commit and push fixup | |
| if: ${{ needs.init.outputs.arg1 == 'fixup' }} | |
| run: | | |
| git add . | |
| git commit --fixup=HEAD --signoff | |
| git push origin ${{ needs.init.outputs.head_ref }} | |
| - name: Commit and push amend | |
| if: ${{ needs.init.outputs.arg1 == 'amend' }} | |
| run: | | |
| git add . | |
| git commit --amend --no-edit --signoff | |
| git push --force origin ${{ needs.init.outputs.head_ref }} | |
| - name: Add reaction on failure | |
| uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0 | |
| if: failure() | |
| with: | |
| token: ${{ secrets.COMMAND_BOT_PAT }} | |
| repository: ${{ github.event.repository.full_name }} | |
| comment-id: ${{ github.event.comment.id }} | |
| reaction-type: "-1" |