From aa259facb7b9b1df8fe21d714be13f94bc0ed24b Mon Sep 17 00:00:00 2001 From: ikkz Date: Wed, 20 Nov 2024 16:28:54 +0800 Subject: [PATCH] feat: Create ci.yml --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..cc83f88 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x, 20.x, 22.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + - run: pnpm install + - run: node cli.js + + - name: Install uv + uses: astral-sh/setup-uv@v3 + with: + version: "0.4.27" + - name: Release Test + run: uv run --frozen release.py