Skip to content

Reintroduce JavaScript transpiled backend with Tongues 0.2.4 #1064

Reintroduce JavaScript transpiled backend with Tongues 0.2.4

Reintroduce JavaScript transpiled backend with Tongues 0.2.4 #1064

Workflow file for this run

name: Just Check
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
- uses: extractions/setup-just@v2
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install Tongues
env:
TONGUES_VERSION: v0.2.4
run: |
mkdir -p "$HOME/.local/lib/tongues/lib" "$HOME/.local/lib/tongues/bin" "$HOME/.local/bin"
curl -sSfL "https://github.com/ldayton/Tongues/releases/download/${TONGUES_VERSION}/tongues.js" \
-o "$HOME/.local/lib/tongues/lib/tongues.js"
curl -sSfL "https://raw.githubusercontent.com/ldayton/Tongues/${TONGUES_VERSION}/tongues/bin/tongues.js" \
-o "$HOME/.local/lib/tongues/bin/tongues.js"
printf '#!/bin/sh\nexec node %s/.local/lib/tongues/bin/tongues.js "$@"\n' "$HOME" > "$HOME/.local/bin/tongues"
chmod +x "$HOME/.local/bin/tongues"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Job summary
run: |
echo "## πŸ—£οΈ Parable CI" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "| Parameter | Value |" >> $GITHUB_STEP_SUMMARY
echo "|-----------|-------|" >> $GITHUB_STEP_SUMMARY
echo "| **Trigger** | ![](https://img.shields.io/badge/${{ github.event_name }}-blue?style=flat-square&logo=githubactions) |" >> $GITHUB_STEP_SUMMARY
echo "| **Triggered by** | ${{ github.actor }} |" >> $GITHUB_STEP_SUMMARY
echo "| **Commit** | \`${{ github.sha }}\` |" >> $GITHUB_STEP_SUMMARY
echo "| **Branch** | \`${{ github.ref_name }}\` |" >> $GITHUB_STEP_SUMMARY
- name: Run checks
run: just check
- name: Upload logs
if: always()
uses: actions/upload-artifact@v4
with:
name: logs
path: |
/tmp/parable-test-py3.12.log
/tmp/parable-test-py3.13.log
/tmp/parable-test-py3.14.log
/tmp/parable-lint.log
/tmp/parable-fmt.log