aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml32
1 files changed, 22 insertions, 10 deletions
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:
6 6
7jobs: 7jobs:
8 adonis-js-check: 8 adonis-js-check:
9 runs-on: ubuntu-latest 9 runs-on: ubuntu-22.04
10 10
11 steps: 11 steps:
12 - uses: actions/checkout@v4 12 - name: Checkout code
13 uses: actions/checkout@v4
14
15 - name: Install pnpm
16 uses: pnpm/action-setup@v3
13 17
14 - name: Use Node.js specified in the '.nvmrc' file 18 - name: Use Node.js specified in the '.nvmrc' file
15 uses: actions/setup-node@v4 19 uses: actions/setup-node@v4
16 with: 20 with:
17 node-version-file: ".nvmrc" 21 node-version-file: ".nvmrc"
22 cache: 'pnpm'
18 23
19 - name: Install pnpm 24 - name: Install node dependencies recursively
20 run: npm i -gf "pnpm@$(node -p 'require("./package.json").engines.pnpm')" && pnpm -v 25 uses: nick-fields/retry@v3
21 26 with:
22 - run: pnpm install 27 command: pnpm i
28 timeout_minutes: 15
29 max_attempts: 3
30 retry_on: error
23 31
24 - run: pnpm typecheck 32 - name: Run typecheck
33 run: pnpm typecheck
25 34
26 - run: pnpm lint 35 - name: Run linter
36 run: pnpm lint
27 37
28 - run: pnpm test 38 - name: Run tests
39 run: pnpm test
29 40
30 - run: pnpm run build 41 - name: Run build
42 run: pnpm run build