name: CI on: [push, pull_request] permissions: contents: read jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: 22 cache: npm - run: npm ci - run: npm run biome:lint tsc: runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: 22 cache: npm - run: npm ci - run: npm run tsc build: runs-on: ${{ matrix.os }} strategy: matrix: node_version: [22] os: [ubuntu-latest, windows-latest, macOS-latest] steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Use Node.js ${{ matrix.node_version }} uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: ${{ matrix.node_version }} cache: npm - run: echo ${{github.ref}} - uses: utooland/setup-utoo@e7aa4d726a17f79f68aed736476ea5bd68f8ba52 # 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