-
Notifications
You must be signed in to change notification settings - Fork 25
43 lines (40 loc) · 1.29 KB
/
Copy pathci.yml
File metadata and controls
43 lines (40 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: ci
on:
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'
- run: npm install
- name: Create placeholder keys for CI
run: |
cp src/environments/keys.example.ts src/environments/keys.ts
sed 's/bungieDev/bungieProd/' src/environments/keys.example.ts > src/environments/keys-prod.ts
- name: Cache manifest data
uses: actions/cache@v4
with:
path: |
tools/manifest/.cache
src/assets/destiny2-*.json
key: manifest-v1-${{ hashFiles('src/assets/destiny2-version.json') }}
restore-keys: manifest-v1-
- name: Fetch Bungie manifest
run: npm run manifest:fetch
env:
BUNGIE_API_KEY: ${{ secrets.API_KEY }}
- run: npm run lint
- run: npm run test:ci
- name: Production build
run: npx ng build --configuration production 2>&1 | tee /tmp/build-output.txt
- name: Report bundle size
run: |
echo '### Bundle Size' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
grep -E '^\S|Initial' /tmp/build-output.txt >> $GITHUB_STEP_SUMMARY || true
echo '```' >> $GITHUB_STEP_SUMMARY