From 01eaba86b60d8ae31543123a34c06d34ae9c9229 Mon Sep 17 00:00:00 2001 From: KtorZ Date: Sat, 1 Jun 2024 11:00:36 +0200 Subject: [PATCH] Add workflow to cover JavaScript part as well. --- .github/workflows/continuous-integration.yml | 32 +++++++++++++++++--- on-chain/aiken.toml | 2 +- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 80b740b..fc9e0c3 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -4,7 +4,6 @@ on: workflow_dispatch: push: branches: ["main"] - tags: ["*.*.*"] pull_request: branches: ["main"] @@ -21,7 +20,30 @@ concurrency: cancel-in-progress: true jobs: - build: + javascript: + runs-on: ubuntu-latest + steps: + - name: 📥 Checkout repository + uses: actions/checkout@v3 + + - name: 🧰 Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 20.13.1 + + - name: 🌍 Install dependencies + working-directory: off-chain + run: yarn + + - name: 🔬 Run tests + working-directory: off-chain + run: yarn test + + - name: 🔬 Generate documentation + working-directory: off-chain + run: yarn docs + + aiken: runs-on: ubuntu-latest steps: - name: 📥 Checkout repository @@ -33,7 +55,7 @@ jobs: - name: 🧰 Install Aiken uses: aiken-lang/setup-aiken@v0.1.0 with: - version: v1.0.26-alpha + version: v1.0.28-alpha - name: 📝 Run fmt working-directory: on-chain @@ -53,9 +75,9 @@ jobs: with: path: "on-chain/docs/" - deploy: + publish-aiken-docs: if: ${{ github.event_name == 'push' }} - needs: build + needs: aiken runs-on: ubuntu-latest environment: name: github-pages diff --git a/on-chain/aiken.toml b/on-chain/aiken.toml index f782b92..db9cdb8 100644 --- a/on-chain/aiken.toml +++ b/on-chain/aiken.toml @@ -10,7 +10,7 @@ platform = "github" [[dependencies]] name = "aiken-lang/stdlib" -version = "main" +version = "1.9.0" source = "github" [[dependencies]]