diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 32 | ||||
-rw-r--r-- | .github/workflows/docker.yml | 2 |
2 files changed, 23 insertions, 11 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 | ||
7 | jobs: | 7 | jobs: |
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 | ||
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: | |||
13 | 13 | ||
14 | jobs: | 14 | jobs: |
15 | docker: | 15 | docker: |
16 | runs-on: ubuntu-latest | 16 | runs-on: ubuntu-22.04 |
17 | steps: | 17 | steps: |
18 | - | 18 | - |
19 | name: Checkout | 19 | name: Checkout |