Skip to content

Commit

Permalink
ci: update spec check
Browse files Browse the repository at this point in the history
  • Loading branch information
ChlodAlejandro committed Oct 30, 2023
1 parent 07488a9 commit 01c4632
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
- name: Download spec
run: |
curl https://stream.wikimedia.org/?spec > /tmp/spec.json
- name: Upload spec
uses: actions/upload-artifact@latest
with:
name: spec
path: /tmp/spec.json
- name: Verify spec
run: |
EXPECT="$( cat spec.json | sha1sum )"
ACTUAL="$( curl https://stream.wikimedia.org/?spec | sha1sum )"
ACTUAL="$( cat /tmp/spec.json | sha1sum )"
echo "Expected: $EXPECT"
echo "Actual: $ACTUAL"
if [[ "$EXPECT" != "$ACTUAL" ]]; then
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,19 @@ jobs:
name: Verify spec
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
- uses: actions/checkout@v4
- name: Download spec
run: |
curl https://stream.wikimedia.org/?spec > /tmp/spec.json
- name: Upload spec
uses: actions/upload-artifact@latest
with:
name: spec
path: /tmp/spec.json
- name: Verify spec
run: |
EXPECT="$( cat spec.json | sha1sum )"
ACTUAL="$( curl https://stream.wikimedia.org/?spec | sha1sum )"
ACTUAL="$( cat /tmp/spec.json | sha1sum )"
echo "Expected: $EXPECT"
echo "Actual: $ACTUAL"
if [[ "$EXPECT" != "$ACTUAL" ]]; then
Expand Down

0 comments on commit 01c4632

Please sign in to comment.