-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 954 Bytes
/
Copy pathci.yml
File metadata and controls
33 lines (33 loc) · 954 Bytes
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
# Syntax-check and lint every recipe in both languages, smoke-test the offline
# crypto stack. Recipes 01-06 hit a live public API, so CI does not run them; it
# verifies they load and lint cleanly.
name: CI
on:
push:
pull_request:
permissions:
contents: read
jobs:
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Compile every recipe
run: python -m compileall -q python
javascript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Syntax-check every recipe
run: for f in javascript/*.js; do node --check "$f"; done
- name: Smoke-test the offline crypto stack (recipe 00)
working-directory: javascript
run: |
npm install
node 00_new_key.js