Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 44 additions & 21 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,70 @@ on:
- main
pull_request: {}

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
node-version: 20
cache: 'yarn'
persist-credentials: false

- uses: supplypike/setup-bin@v3
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.1/cr'
name: 'cr'
version: '0.8.1'
node-version: 24
package-manager-cache: false

- name: Enable Corepack
run: |
corepack enable
corepack prepare yarn@4.12.0 --activate
yarn --version

- uses: supplypike/setup-bin@v3
- uses: calcit-lang/setup-calcit@704b3f5cd6f9ce3bd1e0c926dbdd1d181adb8180 # v1.4.0
with:
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.1/caps'
name: 'caps'
version: '0.8.1'
tools: calcit,caps

- name: "test"
run: caps --ci
- name: Resolve immutable dependencies
run: |
set -euo pipefail
caps --strict --ci
yarn install --immutable
caps verify --toolchain

- run: cr --emit-js -1
- name: Validate canonical Calcit snapshot
run: |
set -euo pipefail
calcit calcit.cirru edit format
git diff --exit-code -- calcit.cirru
calcit calcit.cirru --check-only
calcit calcit.cirru analyze dynamic-methods --max 0
calcit calcit.cirru analyze deprecated --summary-only
calcit calcit.cirru analyze quality --baseline config/calcit-quality.cirru

- run: mkdir -p dist-server && cp -r {package.json,main.mjs,js-out,yarn.lock} dist-server/
- name: Build server bundle
run: |
set -euo pipefail
calcit calcit.cirru js
node --check js-out/app.main.mjs
mkdir -p dist-server
cp -r package.json main.mjs js-out yarn.lock dist-server/

- name: Upload server script
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
id: deploy-server
uses: Pendect/action-rsyncer@v2.0.0
uses: Pendect/action-rsyncer@b7f90f4f8ed893d4e3f852f7a73180631f63d4bd # v2.0.0
env:
DEPLOY_KEY: ${{secrets.rsync_private_key}}
DEPLOY_KEY: ${{ secrets.rsync_private_key }}
with:
flags: '-avzr --progress'
options: ''
ssh_options: ''
src: 'dist-server/*'
dest: 'rsync-user@tiye.me:/servers/cos-up/'

- name: Display status from deploy
run: echo "${{ steps.deploy-server.outputs.status }}"
- name: Display deployment status
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: echo "${{ steps.deploy-server.outputs.status }}"
664 changes: 109 additions & 555 deletions calcit.cirru

Large diffs are not rendered by default.

92 changes: 0 additions & 92 deletions compact.cirru

This file was deleted.

59 changes: 59 additions & 0 deletions config/calcit-quality.cirru
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{} (:schemaVersion 2)
:definitions $ {}
|app.http/extract-body $ {} (:codeDynamic 0)
:codeNil 0
:declaredOptional 0
:deprecatedCalls 0
:schemaDynamic 1
:typeNone 1
:typeNotFull 1
:unresolved 1
:unsafeCoerce 0
|app.main/handle-token $ {} (:codeDynamic 0)
:codeNil 0
:declaredOptional 0
:deprecatedCalls 0
:schemaDynamic 1
:typeNone 1
:typeNotFull 1
:unresolved 1
:unsafeCoerce 0
|app.main/main! $ {} (:codeDynamic 0)
:codeNil 0
:declaredOptional 0
:deprecatedCalls 0
:schemaDynamic 1
:typeNone 1
:typeNotFull 1
:unresolved 1
:unsafeCoerce 0
|app.main/on-request! $ {} (:codeDynamic 0)
:codeNil 1
:declaredOptional 0
:deprecatedCalls 0
:schemaDynamic 1
:typeNone 1
:typeNotFull 1
:unresolved 2
:unsafeCoerce 3
|app.main/reload! $ {} (:codeDynamic 0)
:codeNil 0
:declaredOptional 0
:deprecatedCalls 0
:schemaDynamic 1
:typeNone 1
:typeNotFull 1
:unresolved 1
:unsafeCoerce 0
:metrics $ {} (:codeDynamic 0)
:codeNil 1
:declaredOptional 0
:deprecatedCalls 0
:schemaDynamic 5
:typeNone 5
:typeNotFull 5
:unresolved 6
:unsafeCoerce 3
:scope $ {} (:includeDependencies false)
:namespace nil
:namespacePrefix nil
5 changes: 5 additions & 0 deletions deps.cirru
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

{} (:calcit-version |0.13.77) (:version |0.0.7)
:dependencies $ {}
|calcit-lang/skir |0.0.23
|calcit-lang/lilac |0.5.9
5 changes: 0 additions & 5 deletions package.cirru

This file was deleted.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"packageManager": "yarn@4.12.0",
"version": "0.0.7",
"dependencies": {
"@calcit/procs": "^0.8.1",
"@calcit/procs": "0.13.77",
"cos-nodejs-sdk-v5": "^2.12.4"
},
"scripts": {},
"devDependencies": {}
}
}
Loading