chore: add core readme #146
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: | |
| branches: | |
| - main | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set alternate npm integrity keys | |
| run: | | |
| echo COREPACK_INTEGRITY_KEYS="$(curl https://registry.npmjs.org/-/npm/v1/keys | jq -c '{npm: .keys}')" >> $GITHUB_ENV | |
| - run: corepack enable | |
| - name: Install pnpm | |
| run: corepack prepare pnpm@10.6.5 --activate | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: "pnpm" | |
| - name: Create .env file | |
| run: | | |
| touch .env | |
| echo GH_COMMIT_SHA="${{ github.event.pull_request.head.sha }}" >> .env | |
| echo AGENT_PRIVATE_KEY="${{ secrets.AGENT_PRIVATE_KEY }}" >> .env | |
| - name: Install dependencies | |
| run: | | |
| pnpm install | |
| - name: Build | |
| run: | | |
| pnpm build | |
| - name: Compile | |
| run: | | |
| pnpm compile | |
| - name: Format check | |
| run: | | |
| pnpm format:check | |
| - name: Lint check | |
| run: | | |
| pnpm lint:check | |
| - name: Test | |
| run: | | |
| pnpm test | |
| - name: e2e Test | |
| run: | | |
| pnpm test:e2e |