Repository navigation
Align OpenLaunch with the Gitlawb Explorer aesthetic #14
Workflow file for this run
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: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| app: | |
| name: app · lint, typecheck, unit tests, build | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: app | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: app/package-lock.json | |
| - run: npm ci --no-audit --no-fund | |
| - run: npm run lint | |
| - run: npx tsc --noEmit -p . | |
| - run: npm test | |
| - name: production build | |
| env: | |
| NEXT_PUBLIC_SITE_URL: https://openlaunch.lol | |
| NEXT_PUBLIC_LAUNCH_FACTORY: "0x815542E8b392389A1389E22E588E4B62A67Ade72" | |
| NEXT_PUBLIC_LAUNCH_LOCKER: "0xcd1680D26922fcd9CabFbb8a56bA40C333fD842a" | |
| NEXT_PUBLIC_LAUNCH_FACTORY_ROBINHOOD: "0x815542E8b392389A1389E22E588E4B62A67Ade72" | |
| NEXT_PUBLIC_LAUNCH_LOCKER_ROBINHOOD: "0xcd1680D26922fcd9CabFbb8a56bA40C333fD842a" | |
| run: npm run build | |
| contracts: | |
| name: contracts · build + unit tests | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: contracts | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - uses: foundry-rs/foundry-toolchain@v1 | |
| - run: forge build --sizes | |
| - run: forge test --match-path test/LaunchFactory.t.sol -vv | |
| # live-fork suites (FORK_TESTS=true) need RPC access and run locally before a release; see README |