The three GitHub Actions workflows and what they produce.
Workflow
Trigger
Does
ci.yml
push, pull request
Installs Foundry and dependencies, builds with sizes, runs every test, uploads contracts-out
pages.yml
push to main
Builds the frontend in testnet mode with base /oorka/ and deploys to GitHub Pages
market.yml
cron four times an hour, manual
Runs the demo trader with TRADER_KEY
Why CI builds the contracts
The development machine can’t run Foundry binaries, so CI is the build system. Deploy scripts are plain Node + viem and read bytecode from the contracts-out artifact:
gh run download -R debojyoti10CC/oorka -n contracts-out -D ci-out
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"Oorka","description":"A Uniswap v4 hook where the curator seat is earned on-chain: curators compete on real fees and the winner runs the vault.","colors":{"primary":"#7C3AED","light":"#A78BFA","dark":"#6D28D9"},"logo":{"light":"/logo/light.svg","dark":"/logo/dark.svg","href":"/"},"favicon":"/favicon.svg","appearance":{"default":"system","strict":false},"background":{"decoration":"gradient","color":{"light":"#FFFFFF","dark":"#0E0C14"}},"navbar":{"links":[{"href":"https://github.com/debojyoti10CC/oorka","type":"github"}],"primary":{"type":"button","label":"Open the app","href":"https://oorka.djyo.tech/"}},"footer":{"socials":{"github":"https://github.com/debojyoti10CC/oorka"}},"search":{"prompt":"Search Oorka docs..."},"fonts":{"family":"Inter"},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":{"light":"github-light","dark":"github-dark"}}},"banner":{"content":"Live on Unichain Sepolia: the hook settles every 15-minute epoch on its own through a Reactive Network keeper. [Open the arena](https://oorka.djyo.tech/#/arena)","dismissible":true},"contextual":{"options":["copy","view","chatgpt","claude","cursor"],"display":"header"},"metadata":{"timestamp":true},"integrations":{"telemetry":{"enabled":false}},"navigation":{"global":{"anchors":[{"anchor":"Live app","icon":"monitor","href":"https://oorka.djyo.tech/"},{"anchor":"GitHub","icon":"github","href":"https://github.com/debojyoti10CC/oorka"},{"anchor":"Hook on Uniscan","icon":"search","href":"https://sepolia.uniscan.xyz/address/0xbeEcbe71d831880f2038Bc35b613e100F1f010A0"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"hasAudioNarration":false,"customDomains":[],"gitSource":{"type":"github","owner":"local","repo":"local","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"local","isBase":true},"buildId":"local","clientVersion":"0.0.4341"},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false,"isLoggedInCli":false,"mintExport":{}},"customCss":[]}
{"page":{"pagePath":"development/ci","slug":"/development/ci","pageMetadata":{"title":"CI and workflows","description":"The three GitHub Actions workflows and what they produce.","href":"/development/ci"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"The three GitHub Actions workflows and what they produce.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Mermaid,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Mermaid,{chart:`flowchart LR\n P[\"push to main\"] --> CI[\"ci.yml\u003cbr/>forge build --sizes\u003cbr/>forge test\"]\n P --> PG[\"pages.yml\u003cbr/>vite build --mode unichain\"]\n CI --> ART[\"artifact: contracts-out\"]\n ART --> DEP[\"deploy-*.mjs scripts\"]\n PG --> GH[\"GitHub Pages\"]\n CRON[\"cron :07 :22 :37 :52\"] --> MK[\"market.yml\u003cbr/>node scripts/market.mjs\"]\n MK --> POOL[\"live pool swaps\"]`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Workflow`}),_jsx(_components.th,{children:`Trigger`}),_jsx(_components.th,{children:`Does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ci.yml`})}),_jsx(_components.td,{children:`push, pull request`}),_jsxs(_components.td,{children:[`Installs Foundry and dependencies, builds with sizes, runs every test, uploads `,_jsx(_components.code,{children:`contracts-out`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pages.yml`})}),_jsx(_components.td,{children:`push to main`}),_jsxs(_components.td,{children:[`Builds the frontend in testnet mode with base `,_jsx(_components.code,{children:`/oorka/`}),` and deploys to GitHub Pages`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`market.yml`})}),_jsx(_components.td,{children:`cron four times an hour, manual`}),_jsxs(_components.td,{children:[`Runs the demo trader with `,_jsx(_components.code,{children:`TRADER_KEY`})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`why-ci-builds-the-contracts`,children:`Why CI builds the contracts`}),`\n`,_jsxs(_components.p,{children:[`The development machine can’t run Foundry binaries, so CI is the build system. Deploy scripts are plain Node + viem and read bytecode from the `,_jsx(_components.code,{children:`contracts-out`}),` artifact:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`gh`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` run`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` download`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -R`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` debojyoti10CC/oorka`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -n`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` contracts-out`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -D`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` ci-out`})]}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"CI and workflows","description":"The three GitHub Actions workflows and what they produce.","href":"/development/ci"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Why CI builds the contracts","slug":"why-ci-builds-the-contracts","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"localhost","siteName":"Oorka","title":"CI and workflows - Oorka","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"development/ci.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"The three GitHub Actions workflows and what they produce.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Oorka\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/favicons/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicons/favicon-32x32.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicons/favicon-16x16.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicons/favicon.ico\">\u003cmeta data-mint-head property=\"og:title\" content=\"CI and workflows - Oorka\">\u003cmeta data-mint-head property=\"og:description\" content=\"The three GitHub Actions workflows and what they produce.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Oorka\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://local./development/ci\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"CI and workflows - Oorka\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The three GitHub Actions workflows and what they produce.\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/favicons/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Oorka\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7C3AED\">\u003clink data-mint-head rel=\"canonical\" href=\"https://local./development/ci\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/development/ci.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Oorka\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Oorka\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/development/ci.md","siteName":"Oorka","nav":{"global":{"anchors":[{"anchor":"Live app","icon":"monitor","href":"https://oorka.djyo.tech/"},{"anchor":"GitHub","icon":"github","href":"https://github.com/debojyoti10CC/oorka"},{"anchor":"Hook on Uniscan","icon":"search","href":"https://sepolia.uniscan.xyz/address/0xbeEcbe71d831880f2038Bc35b613e100F1f010A0"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Contracts","pages":[{"title":"Contracts","href":"/contracts/overview"}]},{"tab":"Build \u0026 run","groups":[{"group":"App","pages":[{"title":"The app","href":"/app/overview"},{"title":"Demo market","href":"/app/demo-market"}]},{"group":"Development","pages":[{"title":"Repository","href":"/development/repository"},{"title":"Local setup","href":"/development/local-setup"},{"title":"Testing","description":"46 tests and 5 invariants: what each one proves.","href":"/development/testing"},{"title":"CI and workflows","href":"/development/ci"},{"title":"Deploying","description":"Deploy your own Oorka world on a testnet with a v4 PoolManager.","href":"/development/deploying"}]},{"group":"Resources","pages":[{"title":"FAQ","href":"/resources/faq"},{"title":"Glossary","href":"/resources/glossary"},{"title":"Credits","href":"/resources/credits"}]}]}]},"basePath":"","title":"CI and workflows - Oorka","buildId":"7a8f3d195a35","dynamics":["10e4515597"],"chunks":["BannerMarkdown-C0wTztIQ.js","dist-ffMZJqzp.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}