Skip to content

Commit

Permalink
Merge branch 'main' of github.com:PoCInnovation/alumi
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Apr 8, 2024
2 parents 0c43427 + 7d2441f commit b57b230
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
- name: Prepare the CI environment
run: npm ci

- name: Build
run: npm run build

- name: Publish
run: npm publish
env:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Test Package
on: [push]

jobs:
tsc:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build Dockerfile
run: docker build -t alumi .

- name: Run TSC
run: docker run --rm -v $(pwd):/code --workdir /code alumi bash -c 'npm install && npm run build && cd tests && ./tests.sh'
12 changes: 6 additions & 6 deletions DOCS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Alumi - pulumi-dynamic-provider-aleph
# Alumi - @pocinnovation/alumi

- Node Version: v20.11.1

Expand Down Expand Up @@ -31,7 +31,7 @@ The format of this variable must be `PROVIDER_NAME:METHOD:VALUE`
Post content to aleph

```ts
import { Post } from "pulumi-dynamic-provider-aleph";
import { Post } from "@pocinnovation/alumi";
import { ItemType } from "aleph-sdk-ts/dist/messages/types";

export const messageTest = new Post('messageTest', {
Expand Down Expand Up @@ -61,7 +61,7 @@ export const messageTestExplorer = messageTest.aleph_explorer_url;
Store a String as a File to aleph

```ts
import { StoreString } from "pulumi-dynamic-provider-aleph";
import { StoreString } from "@pocinnovation/alumi";
import { ItemType } from "aleph-sdk-ts/dist/messages/types";

export const stringStored = StoreString("stringStored", {
Expand All @@ -87,7 +87,7 @@ export const stringStoredUrl = stringStored.raw_file_url;
Store File to aleph

```ts
import { StoreFile } from "pulumi-dynamic-provider-aleph";
import { StoreFile } from "@pocinnovation/alumi";
import { ItemType } from "aleph-sdk-ts/dist/messages/types";

export const fileIndexJs = new StoreFile('indexJs', {
Expand All @@ -112,7 +112,7 @@ export const fileIndexUrl = fileIndexJs.raw_file_url;
Store Key-Value pair

```ts
import { Aggregate } from "pulumi-dynamic-provider-aleph";
import { Aggregate } from "@pocinnovation/alumi";
import { ItemType } from "aleph-sdk-ts/dist/messages/types";

export const keyValue = new Aggregate('keyValue', {
Expand Down Expand Up @@ -141,7 +141,7 @@ export const keyValueExplorer = keyValue.aleph_explorer_url;
It is wrapper around `Aggregate`

```ts
import { securityKey } from "pulumi-dynamic-provider-aleph";
import { securityKey } from "@pocinnovation/alumi";
import { ItemType } from "aleph-sdk-ts/dist/messages/types";

export const secuKey = securityKey('key', {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pulumi-dynamic-provider-aleph",
"name": "@pocinnovation/alumi",
"version": "0.0.1",
"description": "Dynamic pulumi provider for Aleph",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion tests/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
getDefaultRuntime,
Instance,
getDefaultImage,
} from 'pulumi-dynamic-provider-aleph';
} from '@pocinnovation/alumi';
import { ItemType } from '@aleph-sdk/message';
import * as pulumi from '@pulumi/pulumi';
import { readFileSync } from 'fs';
Expand Down
5 changes: 5 additions & 0 deletions tests/tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

./init.sh

npx tsc

0 comments on commit b57b230

Please sign in to comment.