File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Flawless Integration"
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+ pull_request :
7+ branches : ["main"]
8+
9+ jobs :
10+ integration :
11+ name : Analyze Integration
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout Repository
16+ uses : actions/checkout@v4
17+
18+ - name : Setup Node.js
19+ uses : actions/setup-node@v3
20+ with :
21+ node-version : 22
22+
23+ - name : Install Dependencies
24+ run : npm ci
25+
26+ - name : Publish Repository to Yalc
27+ run : npx yalc publish
28+
29+ - name : Create Integration Project
30+ run : npx create-react-app integration
31+
32+ - name : Use Package In Integration Project
33+ run : |
34+ cd integration
35+ yalc add fetch-loading
36+ npm ci
37+
38+ - name : Override App.jsx
39+ run : |
40+ cat <<EOF > integration/src/App.jsx
41+ import { FetchLoading } from 'fetch-loading'
42+
43+ const App = () => {
44+ return <FetchLoading />
45+ }
46+
47+ export default App
48+ EOF
49+
50+ - name : Start React App
51+ run : |
52+ cd integration
53+ npm start &
54+ sleep 60
55+ curl -f http://localhost:3000 || exit 1
You can’t perform that action at this time.
0 commit comments