-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.03 KB
/
Copy pathverify.yml
File metadata and controls
38 lines (38 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Riverbraid Verification Gate
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.11.0'
- name: Install Dependencies
run: |
if [ -f package-lock.json ]; then
npm ci
else
echo "No package-lock.json found. Skipping dependency install."
fi
- name: Execute Riverbraid Verifier
run: |
if [ -f verify.mjs ]; then
node verify.mjs
elif [ -f package.json ] && grep -q '"verify":' package.json 2>/dev/null; then
npm run verify
elif [ -f package.json ] && grep -q '"test":' package.json 2>/dev/null; then
npm test
else
echo "Error: No standard verifier found."
exit 1
fi