File tree Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ pull_request :
3
+ types :
4
+ - synchronize
5
+ - opened
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v3
12
+ - uses : actions/setup-node@v3
13
+ - name : Cache Swapi Data
14
+ uses : actions/cache@v3
15
+ with :
16
+ path : cache/data.json
17
+ key : swapi-data
18
+ - name : Install dependencies
19
+ run : npm ci
20
+ - name : Test
21
+ run : npm run test
22
+ - name : Build
23
+ run : npm run build
Original file line number Diff line number Diff line change 13
13
[[plugins ]]
14
14
package = " netlify-plugin-cache"
15
15
[plugins .inputs ]
16
- paths = [" cache/data.json" ]
16
+ paths = [" cache/data.json" ]
Original file line number Diff line number Diff line change 19
19
},
20
20
"type" : " module" ,
21
21
"scripts" : {
22
- "postinstall" : " npm run download && npm run build" ,
23
22
"dev" : " npm run download && netlify dev -c 'tsc --watch'" ,
24
23
"start" : " netlify build" ,
25
24
"test" : " npm run lint && npm run check && npm run test:only" ,
42
41
"graphql-relay" : " 0.10.0"
43
42
},
44
43
"devDependencies" : {
45
- "@types/jest" : " ^29.5.3" ,
46
44
"@typescript-eslint/eslint-plugin" : " ^6.2.1" ,
47
45
"@typescript-eslint/parser" : " ^6.2.1" ,
48
46
"eslint" : " ^8.46.0" ,
49
47
"isomorphic-fetch" : " 2.2.1" ,
50
- "jest" : " ^29.6.2" ,
51
48
"netlify-cli" : " ^15.10.0" ,
52
49
"netlify-plugin-cache" : " ^1.0.3" ,
53
50
"prettier" : " ^1.18.2" ,
54
- "ts-jest" : " ^29.1.1" ,
55
51
"typescript" : " ^5.1.6" ,
56
52
"vitest" : " ^0.34.1"
57
53
},
You can’t perform that action at this time.
0 commit comments