From ba54e1a0859ebc2177df0c47ef6940a030a2fec6 Mon Sep 17 00:00:00 2001 From: lodev09 Date: Mon, 13 May 2024 20:11:16 +0800 Subject: [PATCH] chore: ci --- .github/actions/setup/action.yml | 4 ++-- .github/workflows/ci.yml | 35 ++++++++++---------------------- 2 files changed, 13 insertions(+), 26 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index fb98c79..60df308 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -5,13 +5,13 @@ runs: using: composite steps: - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: .nvmrc - name: Cache dependencies id: yarn-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | **/node_modules diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7912c0..f2adb50 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup uses: ./.github/actions/setup @@ -23,39 +23,26 @@ jobs: - name: Typecheck files run: yarn typecheck - test: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 + # test: + # runs-on: ubuntu-latest + # steps: + # - name: Checkout + # uses: actions/checkout@v4 - - name: Setup - uses: ./.github/actions/setup + # - name: Setup + # uses: ./.github/actions/setup - - name: Run unit tests - run: yarn test --maxWorkers=2 --coverage + # - name: Run unit tests + # run: yarn test --maxWorkers=2 --coverage build-library: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup uses: ./.github/actions/setup - name: Build package run: yarn prepare - - build-web: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Setup - uses: ./.github/actions/setup - - - name: Build example for Web - run: | - yarn example expo export:web