Fix Collector configuration issues #3736
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Links | |
on: | |
pull_request: | |
jobs: | |
build-and-check-links: | |
name: BUILD and CHECK LINKS | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create NPM cache-hash input file | |
run: | | |
mkdir -p tmp | |
jq '{devDependencies, dependencies, engines, gitHubActionCacheKey}' package.json > tmp/package-ci.json | |
- name: Create and use reduced-dependencies package.json | |
run: | | |
jq '.devDependencies |= with_entries( | |
select(.key | test("prefix|hugo|css")) | |
) | |
| del(.dependencies, .optionalDependencies)' \ | |
package.json > tmp/package-min.json | |
cp tmp/package-min.json package.json | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
cache: npm | |
cache-dependency-path: tmp/package-ci.json | |
- run: npm install --omit=optional | |
- run: npm run log:check:links | |
continue-on-error: true | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: build-log-etc | |
path: | | |
tmp/build-log.txt | |
tmp/package*.json | |
static/refcache.json | |
check-refcache: | |
name: REFCACHE updates? | |
needs: build-and-check-links | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v3 | |
with: { name: build-log-etc } | |
- run: npm run diff:fail | |
check-build-log-for-issues: | |
name: WARNINGS in build log? | |
needs: build-and-check-links | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v3 | |
with: { name: build-log-etc } | |
- run: cat tmp/build-log.txt | |
- run: scripts/check-build-log.sh |