File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : argos-ui
2+ on : [push, pull_request]
3+
4+ concurrency :
5+ group : ${{ github.workflow }}-${{ github.ref }}
6+ cancel-in-progress : true
7+
8+ jobs :
9+ ui :
10+ runs-on : ubuntu-latest
11+ defaults :
12+ run :
13+ working-directory : argos-ui # <- adjust if your UI folder name differs
14+ steps :
15+ - uses : actions/checkout@v4
16+
17+ - uses : actions/setup-node@v4
18+ with :
19+ node-version : " 20"
20+
21+ - name : Cache node_modules
22+ uses : actions/cache@v4
23+ with :
24+ path : |
25+ ~/.npm
26+ argos-ui/node_modules
27+ key : ${{ runner.os }}-node-${{ hashFiles('argos-ui/package-lock.json', 'argos-ui/yarn.lock', 'argos-ui/pnpm-lock.yaml') }}
28+
29+ - name : Install deps
30+ run : |
31+ if [ -f package-lock.json ]; then npm ci --no-audit --no-fund;
32+ elif [ -f pnpm-lock.yaml ]; then npm i -g pnpm && pnpm i --frozen-lockfile;
33+ elif [ -f yarn.lock ]; then npm i -g yarn && yarn install --frozen-lockfile;
34+ else npm i; fi
35+
36+ - name : Lint/Test/Build (non-fatal if script missing)
37+ run : |
38+ npm run -s lint --if-present
39+ npm run -s test --if-present
40+ npm run -s build --if-present
41+
42+ - name : Upload build (if any)
43+ if : always()
44+ uses : actions/upload-artifact@v4
45+ with :
46+ name : argos-ui-build
47+ path : |
48+ dist
49+ build
50+ if-no-files-found : ignore
You can’t perform that action at this time.
0 commit comments