From 2fd7fa4e23835304fac6a433d0dc57c4b9fb26ff Mon Sep 17 00:00:00 2001 From: Vijay Aravamudhan Date: Sun, 11 Feb 2024 02:01:20 +0000 Subject: upgrade pnpm and other deps (#98) * Use fixed version of GHA ubuntu runner to avoid "moving target" issues * Normalize GHA scripts parallel to ferdium-app repo --- .github/workflows/build.yml | 32 ++++++++++++++++++++++---------- .github/workflows/docker.yml | 2 +- 2 files changed, 23 insertions(+), 11 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0abcba7..e9c92ec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,25 +6,37 @@ on: jobs: adonis-js-check: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v3 - name: Use Node.js specified in the '.nvmrc' file uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" + cache: 'pnpm' - - name: Install pnpm - run: npm i -gf "pnpm@$(node -p 'require("./package.json").engines.pnpm')" && pnpm -v - - - run: pnpm install + - name: Install node dependencies recursively + uses: nick-fields/retry@v3 + with: + command: pnpm i + timeout_minutes: 15 + max_attempts: 3 + retry_on: error - - run: pnpm typecheck + - name: Run typecheck + run: pnpm typecheck - - run: pnpm lint + - name: Run linter + run: pnpm lint - - run: pnpm test + - name: Run tests + run: pnpm test - - run: pnpm run build + - name: Run build + run: pnpm run build diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index d6a4f7b..0d457af 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -13,7 +13,7 @@ on: jobs: docker: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout -- cgit v1.2.3-54-g00ecf