add ci #3
This file contains 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 Check" | |
on: | |
pull_request: | |
branches: ["main"] | |
# Cancel prev CI if new commit come | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [16] | |
name: Run Test on Node ${{ matrix.node }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Setup yarn | |
run: npm install -g yarn | |
- name: Install deps | |
run: yarn install --frozen-lockfile | |
timeout-minutes: 15 | |
- name: Go to refine | |
run: cd packages/refine | |
- name: Test | |
run: yarn jest | |
- name: Build | |
run: yarn build |