Skip to content

Commit

Permalink
Merge pull request #696 from golemfactory/release-stable-beta
Browse files Browse the repository at this point in the history
Release stable beta
  • Loading branch information
grisha87 authored Nov 30, 2023
2 parents cd3b295 + a01a261 commit cb9828b
Show file tree
Hide file tree
Showing 139 changed files with 20,446 additions and 947 deletions.
2 changes: 1 addition & 1 deletion .docs/summary-generator.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function prepareDocAnchor(docsDir, type, file) {
logStream.write(`---
title: golem-js API reference overview
description: Dive into the content overview of the Golem-JS API reference.
type: reference
type: JS API Reference
---
`);

Expand Down
6 changes: 4 additions & 2 deletions .docs/typedoc-frontmatter-theme.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ class ModifiedHugoTheme extends HugoTheme {

onHugoPageEnd(page) {
const yamlVars = {
title: `${typedoc.ReflectionKind[page.model.kind]} ${this.getPageTitle(page)} - golem-js API Reference`,
title: `${typedoc.ReflectionKind[page.model.kind]} ${this.getPageTitle(page)}`,
pageTitle: `${typedoc.ReflectionKind[page.model.kind]} ${this.getPageTitle(page)} - golem-js API Reference`,
description: `Explore the detailed API reference documentation for the ${
typedoc.ReflectionKind[page.model.kind]
} ${this.getPageTitle(page)} within the golem-js SDK for the Golem Network.`,
type: "reference",
type: "JS API Reference",
};
page.contents && (page.contents = this.prependYAML(page.contents, yamlVars));
}
Expand All @@ -32,6 +33,7 @@ class ModifiedHugoTheme extends HugoTheme {
"---\n" +
Object.entries(yamlVars)
.map(([key, value]) => `${key}: "${value}"`)

.join("\n") +
"\n---\n" +
contents
Expand Down
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"root": true,
"parser": "@typescript-eslint/parser",
"env": {
"node": true
"shared-node-browser": true
},
"extends": ["eslint:recommended", "prettier"],
"rules": {
Expand All @@ -24,5 +24,5 @@
"extends": ["eslint:recommended"]
}
],
"ignorePatterns": ["dist/", "handbook_gen/", "docs/", "bundle.js", "tests", "*.config.ts"]
"ignorePatterns": ["dist/", "handbook_gen/", "docs/", "bundle.js", "tests", "*.config.ts", "tmp/"]
}
88 changes: 0 additions & 88 deletions .github/workflows/cypress-nightly.yml

This file was deleted.

84 changes: 0 additions & 84 deletions .github/workflows/examples-nightly.yml

This file was deleted.

96 changes: 0 additions & 96 deletions .github/workflows/goth-nightly.yml

This file was deleted.

32 changes: 23 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ on:
workflow_dispatch:
inputs:
provider_version:
description: "Provider version (e.g., v0.12.3 or pre-rel-v0.13.1)"
description: "Provider version (e.g., v0.13.2 or pre-rel-v0.13.1)"
required: false
default: "v0.12.3"
default: "v0.13.2"
requestor_version:
description: "Requestor version (e.g., v0.12.3 or pre-rel-v0.13.1)"
description: "Requestor version (e.g., v0.13.2 or pre-rel-v0.13.1)"
required: false
default: "v0.12.3"
default: "v0.13.2"
provider_wasi_version:
description: "Provider WASI version (e.g., v0.2.2)"
required: false
Expand Down Expand Up @@ -63,13 +63,20 @@ jobs:
npm install --prefix examples
npm run --prefix examples lint:ts
- name: Upload unit test reports
uses: actions/upload-artifact@v3
if: always()
with:
name: unit-test-report
path: reports/unit-report.xml

run-integration-and-e2e-tests:
name: Run integration and E2E tests
needs: regular-checks
runs-on: goth2
env:
PROVIDER_VERSION: ${{ github.event.inputs.provider_version || 'v0.12.3' }}
REQUESTOR_VERSION: ${{ github.event.inputs.requestor_version || 'v0.12.3' }}
PROVIDER_VERSION: ${{ github.event.inputs.provider_version || 'v0.13.2' }}
REQUESTOR_VERSION: ${{ github.event.inputs.requestor_version || 'v0.13.2' }}
PROVIDER_WASI_VERSION: ${{ github.event.inputs.provider_wasi_version || 'v0.2.2' }}
PROVIDER_VM_VERSION: ${{ github.event.inputs.provider_vm_version || 'v0.3.0' }}
steps:
Expand Down Expand Up @@ -111,10 +118,16 @@ jobs:
run: |
docker exec -t docker-requestor-1 /bin/sh -c "cd /golem-js && npm i && npm run build && ./node_modules/.bin/cypress install && npm install --prefix examples && npm install ts-node"
- name: Start the e2e test
- name: Start the E2E test
run: docker exec -t docker-requestor-1 /bin/sh -c "cd /golem-js && npm run test:e2e"

#region Cypress test execution
- name: Upload E2E reports
uses: actions/upload-artifact@v3
if: always()
with:
name: e2e-test-report
path: reports/e2e-report.xml

- name: Run web server
run: |
docker exec -t -d docker-requestor-1 /bin/sh -c "cd /golem-js/examples/web && node app.mjs"
Expand All @@ -128,7 +141,7 @@ jobs:
docker exec -t docker-requestor-1 /bin/sh -c "cd /golem-js && npm run test:examples -- --exitOnError"
- name: Upload test logs
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: always()
with:
name: cypress-logs
Expand Down Expand Up @@ -176,3 +189,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
run-name: "${{ github.workflow }} - Requestor: ${{ github.event.inputs.requestor_version }}, Provider: ${{ github.event.inputs.provider_version }}, WASI: ${{ github.event.inputs.provider_wasi_version }}, VM: ${{ github.event.inputs.provider_vm_version }}"
Loading

0 comments on commit cb9828b

Please sign in to comment.