fix: resolve test failures with proper imports and consistent JSON fo… #84
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: Internal - Main - Continuous Integration | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ['*'] | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '25 8 * * 1' | |
| permissions: | |
| actions: read | |
| contents: read | |
| issues: read | |
| packages: write | |
| pull-requests: read | |
| security-events: write | |
| statuses: write | |
| # FIXME: This is a workaround for having workflow ref. See https://github.com/orgs/community/discussions/38659 | |
| id-token: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| clean: | |
| uses: hoverkraft-tech/ci-github-container/.github/workflows/prune-pull-requests-images-tags.yml@f9e149b6cdfa8443994994f10085691a57b8cf0e # 0.27.1 | |
| with: | |
| images: '["cli"]' | |
| ci: | |
| uses: ./.github/workflows/__shared-ci.yml | |
| secrets: inherit | |
| with: | |
| sign-images: true | |
| docs-action: | |
| needs: ci | |
| if: github.event_name != 'schedule' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 | |
| with: | |
| name: github-action-documentation | |
| path: packages/docs/content/integrations/github-action.md | |
| - uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1 | |
| id: generate-token | |
| with: | |
| app-id: ${{ vars.CI_BOT_APP_ID }} | |
| private-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }} | |
| # FIXME: enable when working | |
| # - uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@b4883995e100e291a1fed68678d47a560328ed08 # 0.24.0 | |
| # with: | |
| # github-token: ${{ steps.generate-token.outputs.token }} | |
| # branch: docs/action-documentation-update | |
| # title: 'docs: update action documentation' | |
| # body: Update action documentation | |
| # commit-message: | | |
| # docs: update action documentation | |
| # [skip ci] | |
| docs-deploy: | |
| needs: ci | |
| if: github.ref == 'refs/heads/main' && github.event_name != 'schedule' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: hoverkraft-tech/ci-github-publish/actions/deploy/github-pages@6d9e5d48da1a80c085e8ed867d680a5e99b28217 # main | |
| with: | |
| build-path: packages/docs/build | |
| build-artifact-name: build |