Skip to content

Commit 20f2380

Browse files
committed
bring config into deploy, revert commit
1 parent 2846317 commit 20f2380

2 files changed

Lines changed: 24 additions & 58 deletions

File tree

.github/workflows/commit.yml

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -114,54 +114,6 @@ jobs:
114114
if: always()
115115
run: make down
116116

117-
lighthouse:
118-
runs-on: ubuntu-latest
119-
name: Lighthouse CI Audit
120-
continue-on-error: true
121-
steps:
122-
- name: Check out the code
123-
uses: actions/checkout@v4
124-
125-
- name: Set up Node.js
126-
uses: actions/setup-node@v4
127-
with:
128-
node-version: "20"
129-
130-
- name: Install Lighthouse CI
131-
run: npm install -g @lhci/cli
132-
133-
- name: Collect Lighthouse results
134-
run: |
135-
lhci collect \
136-
--url="https://catalog.data.gov" \
137-
--url="https://catalog.data.gov/organization" \
138-
--url="https://catalog.data.gov/organization/gsa" \
139-
--url="https://catalog.data.gov/dataset/gsa-enterprise-data-inventory-edi" \
140-
--numberOfRuns=1
141-
142-
- name: Upload to filesystem
143-
run: |
144-
lhci upload \
145-
--target=filesystem \
146-
--outputDir=./lighthouse-results
147-
148-
- name: Assert thresholds
149-
run: |
150-
output=$(lhci assert --config=lighthouserc.yml 2>&1) || {
151-
echo "$output" | while IFS= read -r line; do
152-
[[ -n "$line" ]] && echo "::error::$line"
153-
done
154-
exit 1
155-
}
156-
157-
- name: Upload Lighthouse results
158-
uses: actions/upload-artifact@v4
159-
if: always()
160-
with:
161-
name: lighthouse-results
162-
path: ./lighthouse-results/**/*.html
163-
retention-days: 30
164-
165117
deploy-development:
166118
name: deploy to development space
167119
if: github.ref == 'refs/heads/develop'

.github/workflows/deploy.yml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
name: Lighthouse CI Audit
6464
needs: deploy-prod
6565
runs-on: ubuntu-latest
66+
continue-on-error: true
6667
steps:
6768
- name: Check out the code
6869
uses: actions/checkout@v4
@@ -75,21 +76,34 @@ jobs:
7576
- name: Install Lighthouse CI
7677
run: npm install -g @lhci/cli
7778

78-
- name: Run Lighthouse CI
79+
- name: Collect Lighthouse results
7980
run: |
80-
lhci autorun \
81-
--collect.url="https://catalog.data.gov" \
82-
--collect.url="https://catalog.data.gov/organization" \
83-
--collect.url="https://catalog.data.gov/organization/gsa" \
84-
--collect.url="https://catalog.data.gov/dataset/gsa-enterprise-data-inventory-edi" \
85-
--collect.numberOfRuns=1 \
86-
--upload.target=filesystem \
87-
--upload.outputDir=./lighthouse-results
81+
lhci collect \
82+
--url="https://catalog.data.gov" \
83+
--url="https://catalog.data.gov/organization" \
84+
--url="https://catalog.data.gov/organization/gsa" \
85+
--url="https://catalog.data.gov/dataset/gsa-enterprise-data-inventory-edi" \
86+
--numberOfRuns=1
87+
88+
- name: Upload to filesystem
89+
run: |
90+
lhci upload \
91+
--target=filesystem \
92+
--outputDir=./lighthouse-results
93+
94+
- name: Assert thresholds
95+
run: |
96+
output=$(lhci assert --config=lighthouserc.yml 2>&1) || {
97+
echo "$output" | while IFS= read -r line; do
98+
[[ -n "$line" ]] && echo "::error::$line"
99+
done
100+
exit 1
101+
}
88102
89103
- name: Upload Lighthouse results
90104
uses: actions/upload-artifact@v4
91105
if: always()
92106
with:
93107
name: lighthouse-results
94-
path: ./lighthouse-results
108+
path: ./lighthouse-results/**/*.html
95109
retention-days: 7

0 commit comments

Comments
 (0)