diff options
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c49eed4 --- /dev/null +++ b/.github/workflows/build.yml | |||
@@ -0,0 +1,30 @@ | |||
1 | name: AdonisJS check | ||
2 | |||
3 | on: | ||
4 | pull_request: | ||
5 | branches: [main] | ||
6 | |||
7 | jobs: | ||
8 | adonis-js-check: | ||
9 | runs-on: ubuntu-latest | ||
10 | |||
11 | steps: | ||
12 | - uses: actions/checkout@v3 | ||
13 | |||
14 | - name: Use Node.js specified in the '.nvmrc' file | ||
15 | uses: actions/setup-node@v3 | ||
16 | with: | ||
17 | node-version-file: ".nvmrc" | ||
18 | |||
19 | - name: Install pnpm | ||
20 | run: npm i -gf "pnpm@$(node -p 'require("./package.json").engines.pnpm')" && pnpm -v | ||
21 | |||
22 | - run: pnpm install | ||
23 | |||
24 | - run: pnpm typecheck | ||
25 | |||
26 | - run: pnpm lint | ||
27 | |||
28 | - run: pnpm test | ||
29 | |||
30 | - run: pnpm run build | ||