name: CI on: [push, pull_request] permissions: contents: read jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: 20 - run: npm ci - run: npx antd lint ./src build: runs-on: ${{ matrix.os }} strategy: matrix: node_version: [20] os: [ubuntu-latest, windows-latest, macOS-latest] steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Use Node.js ${{ matrix.node_version }} uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: ${{ matrix.node_version }} - run: echo ${{github.ref}} - uses: utooland/setup-utoo@3a51006d0b66afcc32d1b9177a4b200b74f4a8cb # v1 with: cache-utoo: false - run: ut - run: ut lint - run: ut build env: CI: true PROGRESS: none NODE_ENV: test NODE_OPTIONS: --max_old_space_size=4096