diff --git a/.gitattributes b/.gitattributes index 9d32c78..527d2dd 100644 --- a/.gitattributes +++ b/.gitattributes @@ -12,5 +12,4 @@ /phpunit.xml export-ignore /pint.json export-ignore /rector.php export-ignore -/.depot export-ignore /renovate.json export-ignore diff --git a/.depot/workflows/audit.yml b/.github/workflows/audit.yml similarity index 80% rename from .depot/workflows/audit.yml rename to .github/workflows/audit.yml index 01abfae..c086bc5 100644 --- a/.depot/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -1,9 +1,3 @@ -# Depot CI Migration -# Source: .github/workflows/audit.yml -# -# Changes made: -# - Changed GitHub runs-on labels to their Depot equivalents - name: audit # Advisories come out between pushes, so the dependencies are checked every @@ -20,7 +14,7 @@ permissions: jobs: php: - runs-on: depot-ubuntu-latest # was: ubuntu-latest. Mapped standard GitHub runner to Depot equivalent. + runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -36,7 +30,7 @@ jobs: - run: composer audit --abandoned=report js: - runs-on: depot-ubuntu-latest # was: ubuntu-latest. Mapped standard GitHub runner to Depot equivalent. + runs-on: ubuntu-latest defaults: run: working-directory: js diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..45bed4e --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,23 @@ +name: docs + +# keyringphp.com builds its docs from docs/ on main. When they change, ask the +# site's repository to rebuild and deploy (its deploy workflow listens for the +# "docs" dispatch). +on: + push: + branches: [main] + paths: ['docs/**'] + workflow_dispatch: + +# Nothing here reads or writes this repository. +permissions: {} + +jobs: + site: + runs-on: ubuntu-latest + steps: + # SITE_DISPATCH_TOKEN: a fine-grained token with Contents: write on + # keyringphp/keyringphp.com, which repository dispatches need. + - run: gh api repos/keyringphp/keyringphp.com/dispatches -f event_type=docs + env: + GH_TOKEN: ${{ secrets.SITE_DISPATCH_TOKEN }} diff --git a/.depot/workflows/tests.yml b/.github/workflows/tests.yml similarity index 89% rename from .depot/workflows/tests.yml rename to .github/workflows/tests.yml index 50f886b..69e5807 100644 --- a/.depot/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,9 +1,3 @@ -# Depot CI Migration -# Source: .github/workflows/tests.yml -# -# Changes made: -# - Changed GitHub runs-on labels to their Depot equivalents - name: tests on: @@ -22,7 +16,7 @@ concurrency: jobs: tests: - runs-on: depot-ubuntu-latest # was: ubuntu-latest. Mapped standard GitHub runner to Depot equivalent. + runs-on: ubuntu-latest strategy: fail-fast: false matrix: @@ -57,7 +51,7 @@ jobs: # The oldest versions composer.json allows, so its floors stay true. lowest: - runs-on: depot-ubuntu-latest # was: ubuntu-latest. Mapped standard GitHub runner to Depot equivalent. + runs-on: ubuntu-latest name: tests (lowest dependencies) steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -77,7 +71,7 @@ jobs: KEYRING_TEST_LOWEST: 1 databases: - runs-on: depot-ubuntu-latest # was: ubuntu-latest. Mapped standard GitHub runner to Depot equivalent. + runs-on: ubuntu-latest strategy: fail-fast: false matrix: @@ -123,7 +117,7 @@ jobs: - run: vendor/bin/pest --testsuite=Concurrency js: - runs-on: depot-ubuntu-latest # was: ubuntu-latest. Mapped standard GitHub runner to Depot equivalent. + runs-on: ubuntu-latest defaults: run: working-directory: js diff --git a/renovate.json b/renovate.json index 06b2990..f64c3d1 100644 --- a/renovate.json +++ b/renovate.json @@ -1,9 +1,6 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "enabledManagers": ["github-actions"], - "github-actions": { - "managerFilePatterns": ["/(^|/)\\.depot/workflows/.+\\.ya?ml$/"] - }, "minimumReleaseAge": "5 days", "schedule": ["before 6am on monday"], "packageRules": [