File tree Expand file tree Collapse file tree 4 files changed +81
-1
lines changed
actions/install-dependencies Expand file tree Collapse file tree 4 files changed +81
-1
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,14 @@ module.exports = {
22 extends : [
33 'artisan' ,
44 ] ,
5+ overrides : [
6+ {
7+ files : [
8+ './.github/**/*.yml' ,
9+ ] ,
10+ rules : {
11+ 'yml/no-empty-mapping-value' : 'off' ,
12+ } ,
13+ } ,
14+ ] ,
515}
Original file line number Diff line number Diff line change 1+ name : Install dependencies
2+ description : Install and cache dependencies
3+ runs :
4+ using : composite
5+ steps :
6+ - uses : actions/checkout@v3
7+ - uses : actions/setup-node@v3
8+ with :
9+ node-version : 18
10+ 11+ with :
12+ run_install : false
13+ version : 8
14+ - name : Get the pnpm store directory
15+ shell : bash
16+ run : |
17+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
18+ - name : Setup the pnpm cache
19+ uses : actions/cache@v3
20+ with :
21+ key : v1-${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
22+ path : |
23+ ${{ env.STORE_PATH }}
24+ restore-keys : v1-${{ runner.os }}-pnpm-store-
25+ - name : Install dependencies
26+ shell : bash
27+ run : pnpm install
Original file line number Diff line number Diff line change 1+ name : ci
2+ on :
3+ pull_request :
4+ push :
5+ branches :
6+ - main
7+ jobs :
8+ install-dependencies :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v3
12+ - uses : ./.github/actions/install-dependencies
13+ lint :
14+ needs :
15+ - install-dependencies
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v3
19+ - uses : ./.github/actions/install-dependencies
20+ - name : Run the linter
21+ run : pnpm lint
22+ test-unit :
23+ needs :
24+ - install-dependencies
25+ runs-on : ubuntu-latest
26+ steps :
27+ - uses : actions/checkout@v3
28+ - uses : ./.github/actions/install-dependencies
29+ - run : pnpm build:core
30+ - run : pnpm build:shims
31+ - run : pnpm build:shims:banner
32+ - run : pnpm test
33+ typecheck :
34+ needs :
35+ - install-dependencies
36+ runs-on : ubuntu-latest
37+ steps :
38+ - uses : actions/checkout@v3
39+ - uses : ./.github/actions/install-dependencies
40+ - run : pnpm build:core
41+ - run : pnpm build:shims
42+ - run : pnpm build:shims:banner
43+ - run : pnpm typecheck
Original file line number Diff line number Diff line change 1- workspaces :
1+ packages :
22 - .
33 - ' ./examples/*'
You can’t perform that action at this time.
0 commit comments