Skip to content

Commit

Permalink
oop x 8
Browse files Browse the repository at this point in the history
  • Loading branch information
mgwalker committed Sep 17, 2023
1 parent 25924bd commit ff570b1
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/integrity-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,24 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
- id: cache_key
run: echo "cache_key=${{ hashFiles('**/**') }}-v1" >> "$GITHUB_OUTPUT"

- uses: actions/cache@v3
id: cache
with:
path: .
key: ${{ steps.cache_key.outputs.cache_key }}

- if: steps.cache.outputs.cache-hit != true
uses: actions/setup-node@v3
with:
node-version: 18

- name: install dependencies
run: npm ci
- if: steps.cache.outputs.cache-hit != true
run: npm install

- name: build site
- if: steps.cache.outputs.cache-hit != true
env:
ELEVENTY_ENV: production
run: npm run build
Expand Down Expand Up @@ -64,7 +74,7 @@ jobs:
siteFiles.map(async (filePath) => {
const file = await fs.readFile(filePath);
const hash = md5(file);
return [hash, filePath.replace(/$_site\//, "")];
return [hash, filePath.replace(/^_site\//, "")];
})
);
Expand All @@ -89,6 +99,7 @@ jobs:
if (expectedHash !== remoteHash) {
mismatch.push({ expectedHash, remoteHash, url });
}
await sleep(500);
}
Expand Down

0 comments on commit ff570b1

Please sign in to comment.