File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 - name : Run tests in Docker container
2121 run : docker run -e CI=true cygnetops/react-test npm test
2222
23- deploy :
24- needs : docker-test
25- runs-on : ubuntu-latest
26-
27- steps :
28- - name : Checkout repo
29- uses : actions/checkout@v4
30-
31- - name : Set up Node.js
32- uses : actions/setup-node@v4
33- with :
34- node-version : ' 22.x'
35-
36- - name : Install dependencies
37- run : npm ci
38-
39- - name : Build the app
40- run : npm run build --if-present
41-
42- - name : Clean up node_modules (optional)
43- run : rm -rf node_modules
44-
4523 - name : Generate deploy package (zip)
46- run : |
47- zip -r deploy.zip . \
48- -x "*.git*" \
49- "node_modules/*" \
50- ".github/*" \
51- "*.test.js" \
52- "*.md"
24+ run : zip -r deploy.zip . -x '*.git*'
5325
5426 - name : Deploy to Elastic Beanstalk
5527 uses : einaregilsson/beanstalk-deploy@v18
You can’t perform that action at this time.
0 commit comments