Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint markdown #27

Merged
merged 4 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Linting Check on Markdown
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
lint:
name: markdown lint check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up NodeJS
uses: actions/setup-node@v2
- name: Install pulumictl
run: curl -L https://github.com/pulumi/pulumictl/releases/download/v0.0.46/pulumictl-v0.0.46-linux-amd64.tar.gz | sudo tar zxv -C /usr/bin -f- pulumictl
- name: Lint markdown
run: |
yarn install
make lint
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ yarn.lock

**/schema-embed.json
**/version.txt
pulumi-eventstorecloud.sln

node_modules
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ WORKING_DIR := $(shell pwd)
OS := $(shell uname)
EMPTY_TO_AVOID_SED := ""

.PHONY: lint
lint:
./scripts/lint.sh

prepare::
@if test -z "${NAME}"; then echo "NAME not set"; exit 1; fi
@if test -z "${REPOSITORY}"; then echo "REPOSITORY not set"; exit 1; fi
Expand Down
10 changes: 5 additions & 5 deletions docs/installation-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ layout: package

The Event Store Cloud provider is available as a package in all Pulumi languages:

- JavaScript/TypeScript: [`@eventstore/pulumi-eventstorecloud`](https://www.npmjs.com/package/@eventstore/pulumi-eventstorecloud)
- Go: [`github.com/EventStore/pulumi-eventstorecloud/sdk/go/eventstorecloud`](https://github.com/EventStore/pulumi-eventstorecloud)
- .NET: [`Pulumi.EventStoreCloud`](https://www.nuget.org/packages/Pulumi.EventStoreCloud)
- JavaScript/TypeScript: [`@eventstore/pulumi-eventstorecloud`](https://www.npmjs.com/package/@eventstore/pulumi-eventstorecloud)
- Go: [`github.com/EventStore/pulumi-eventstorecloud/sdk/go/eventstorecloud`](https://github.com/EventStore/pulumi-eventstorecloud)
- .NET: [`Pulumi.EventStoreCloud`](https://www.nuget.org/packages/Pulumi.EventStoreCloud)

## Setup

Expand All @@ -33,8 +33,8 @@ First, you need an [access token](https://developers.eventstore.com/cloud/automa

Then, go to the list of organizations you have access to in Event Store Cloud console, choose the organization that you will be provisioning resources for, and look the organization id in the settings.

- `<YOUR_ACCESS_TOKEN>`: your access token
- `<YOUR_ORGANIZATION_ID>`: the Event Store Cloud organization id
- `<YOUR_ACCESS_TOKEN>`: your access token
- `<YOUR_ORGANIZATION_ID>`: the Event Store Cloud organization id

Once the credentials are obtained, there are two ways to communicate your authorization tokens to Pulumi:

Expand Down
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "pulumi-eventstorecloud",
"version": "0.0.1",
"repository": "git@github.com/EventStore/pulumi-eventstorecloud",
"author": "Brock Shelton <brock.shelton@eventstore.com>",
"license": "Apache-2.0",
"dependencies": {
"js-yaml": "^4.1.0",
"markdownlint": "^0.28.0"
}
}
3 changes: 3 additions & 0 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

node ./scripts/lint/lint-markdown.js $1
Loading
Loading