File tree Expand file tree Collapse file tree 2 files changed +12
-16
lines changed Expand file tree Collapse file tree 2 files changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -22,19 +22,24 @@ runs:
22
22
echo "PnPM version is $(pnpm --version)"
23
23
shell : bash
24
24
# https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time
25
+ - name : Get Current Month
26
+ id : date-month
27
+ shell : bash
28
+ run : |
29
+ DATE=$(date +'%Y-%m')
30
+ echo "$DATE"
31
+ echo "date_month=$DATE" >> $GITHUB_OUTPUT
25
32
- name : Get pnpm store directory
26
33
id : pnpm-cache
27
34
shell : bash
28
- run : |
29
- echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
35
+ run : echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
30
36
- uses : actions/cache@v3
31
37
name : Setup pnpm cache
32
38
with :
33
39
path : ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
34
- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
35
- restore-keys : |
36
- ${{ runner.os }}-pnpm-store-
37
- - name : Install dependencies
40
+ key : ${{ runner.os }}-pnpm-store-${{steps.date-month.outputs.date_month}}-${{ hashFiles('**/pnpm-lock.yaml') }}
41
+ restore-keys : ${{ runner.os }}-pnpm-store-${{steps.date-month.outputs.date_month}}
42
+ - name : Install Dependencies
38
43
run : pnpm install
39
44
shell : bash
40
45
if : ${{inputs.install-deps}} == 'true'
Original file line number Diff line number Diff line change @@ -2,28 +2,19 @@ name: pr
2
2
on :
3
3
pull_request : {}
4
4
jobs :
5
- setup :
6
- runs-on : ubuntu-latest
7
- steps :
8
- - uses : actions/checkout@v3
9
- - uses : ./.github/actions/setup
10
5
format :
11
- needs : setup
12
6
runs-on : ubuntu-latest
13
7
steps :
14
8
- uses : actions/checkout@v3
15
9
- uses : ./.github/actions/setup
16
10
- run : pnpm check:format
17
11
types :
18
- needs : setup
19
12
runs-on : ubuntu-latest
20
13
steps :
21
14
- uses : actions/checkout@v3
22
15
- uses : ./.github/actions/setup
23
16
- run : pnpm check:types
24
-
25
- tests :
26
- needs : setup
17
+ test :
27
18
runs-on : ubuntu-latest
28
19
strategy :
29
20
matrix :
You can’t perform that action at this time.
0 commit comments