From 44d5b8860878efd65b314d747b22611bc1813ca0 Mon Sep 17 00:00:00 2001 From: Mar-IA-no Date: Fri, 28 Aug 2026 18:18:35 -0300 Subject: [PATCH] ci: validate site and contract manifests --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..75fab41 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + pull_request: + push: + branches: [main] + +permissions: + contents: read + +concurrency: + group: site-ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20" + - name: Test + run: npm test + - name: Build + run: npm run build + - name: Verify contract manifests + shell: bash + run: | + set -Eeuo pipefail + while IFS= read -r manifest; do + directory="$(dirname "$manifest")" + (cd "$directory" && sha256sum -c SHA256SUMS) + done < <(find contracts -name SHA256SUMS -type f -print | sort)