36 lines
694 B
YAML
36 lines
694 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: ["**"]
|
|
pull_request:
|
|
branches: ["master"]
|
|
|
|
jobs:
|
|
build-and-anchors:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: node:20-bookworm-slim
|
|
|
|
steps:
|
|
- name: Install git (needed by checkout)
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y --no-install-recommends git ca-certificates
|
|
git --version
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install deps
|
|
run: npm ci
|
|
|
|
- name: Inline scripts syntax check
|
|
run: node scripts/check-inline-js.mjs
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Anchors contract
|
|
run: npm run test:anchors
|