update #69
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: {} | |
| pull_request: {} | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout cli repo | |
| uses: actions/checkout@v4 | |
| with: | |
| path: cli | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.11.1 | |
| - name: Enable corepack | |
| run: corepack enable | |
| - name: Install Rush | |
| run: npm install -g @microsoft/rush | |
| - name: Clone arken monorepo | |
| run: git clone --depth=1 https://github.com/arkenrealms/arken.git arken | |
| - name: Sync cli sources into monorepo app path | |
| run: | | |
| rsync -a --delete \ | |
| --exclude '.git' \ | |
| --exclude 'node_modules' \ | |
| --exclude '.rush' \ | |
| --exclude '.github' \ | |
| cli/ arken/cli/ | |
| - name: Install dependencies | |
| run: rush install | |
| working-directory: arken | |
| - name: Build cli | |
| run: rushx build | |
| working-directory: arken/cli | |
| - name: Lint cli | |
| run: rushx lint | |
| working-directory: arken/cli | |
| - name: Test cli | |
| run: rushx test | |
| working-directory: arken/cli | |
| test_trpc_vnext: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout cli repo | |
| uses: actions/checkout@v4 | |
| with: | |
| path: cli | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.11.1 | |
| - name: Enable corepack | |
| run: corepack enable | |
| - name: Install Rush | |
| run: npm install -g @microsoft/rush | |
| - name: Clone arken monorepo | |
| run: git clone --depth=1 https://github.com/arkenrealms/arken.git arken | |
| - name: Sync cli sources into monorepo app path | |
| run: | | |
| rsync -a --delete \ | |
| --exclude '.git' \ | |
| --exclude 'node_modules' \ | |
| --exclude '.rush' \ | |
| --exclude '.github' \ | |
| cli/ arken/cli/ | |
| - name: Install dependencies | |
| run: rush install | |
| working-directory: arken | |
| - name: Upgrade tRPC server (next) | |
| run: rush add -p @trpc/server@next --make-consistent | |
| working-directory: arken/cli | |
| - name: Run tests with tRPC next | |
| run: rushx test | |
| working-directory: arken/cli |