File tree Expand file tree Collapse file tree 1 file changed +33
-3
lines changed Expand file tree Collapse file tree 1 file changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -65,12 +65,42 @@ jobs:
65
65
- name : Run Build
66
66
run : pnpm build
67
67
68
- - name : Run Lint
69
- run : pnpm lint
70
-
71
68
- name : Run Tests
72
69
run : pnpm test
73
70
71
+ lint :
72
+ runs-on : buildjet-4vcpu-ubuntu-2204
73
+ container :
74
+ image : node:18
75
+ steps :
76
+ - name : Checkout
77
+ uses : actions/checkout@v3
78
+
79
+ - name : Enable Corepack
80
+ id : pnpm-setup
81
+ run : |
82
+ corepack enable
83
+ corepack prepare pnpm@latest --activate
84
+ pnpm config set script-shell "/usr/bin/bash"
85
+ echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
86
+
87
+ - name : pnpm Cache
88
+ uses : buildjet/cache@v3
89
+ with :
90
+ path : ${{ steps.pnpm-setup.outputs.pnpm_cache_dir }}
91
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
92
+ restore-keys : |
93
+ ${{ runner.os }}-pnpm-store-
94
+
95
+ - name : Install packages
96
+ run : pnpm install --frozen-lockfile
97
+
98
+ - name : Run Build
99
+ run : pnpm build
100
+
101
+ - name : Run Lint
102
+ run : pnpm lint
103
+
74
104
build :
75
105
runs-on : buildjet-4vcpu-ubuntu-2204
76
106
container :
You can’t perform that action at this time.
0 commit comments