Skip to content

Commit

Permalink
Add workflow to cover JavaScript part as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Jun 1, 2024
1 parent a673b73 commit 01eaba8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
32 changes: 27 additions & 5 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
workflow_dispatch:
push:
branches: ["main"]
tags: ["*.*.*"]
pull_request:
branches: ["main"]

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion on-chain/aiken.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ platform = "github"

[[dependencies]]
name = "aiken-lang/stdlib"
version = "main"
version = "1.9.0"
source = "github"

[[dependencies]]
Expand Down

0 comments on commit 01eaba8

Please sign in to comment.