From d32f01af0fca1dc6954397f404b1b787ed132829 Mon Sep 17 00:00:00 2001 From: Tim Cheung Date: Fri, 19 Jan 2024 00:15:23 +0000 Subject: [PATCH] update ci github action --- .github/workflows/ci.yml | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a19d2e06..885ab88c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,28 +2,42 @@ name: CI on: push: - branches: - - '**' pull_request: - branches: - - '**' jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - run: npm ci - - run: npm run lint + - uses: actions/checkout@v4 + - uses: biomejs/setup-biome@v2 + - run: biome ci . test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: npm - run: npm ci - run: npm run test + types: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: npm + - run: npm ci + - run: npm run types build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: npm - run: npm ci - run: npm run build