This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial version. Co-authored-by: Fran Méndez <fmvilas@gmail.com>
- Loading branch information
1 parent
4e4b407
commit 8af4617
Showing
86 changed files
with
14,741 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Pull request integration testing | ||
|
||
on: | ||
pull_request: | ||
types: [synchronize] | ||
|
||
jobs: | ||
test: | ||
if: github.event.pull_request.draft == false | ||
name: 'Run linter and tests' | ||
runs-on: ubuntu-latest | ||
services: | ||
nats: | ||
image: nats | ||
ports: | ||
- 4222 | ||
restart: unless-stopped | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 13 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Generate and build examples | ||
run: npm run test:examples:integration | ||
env: | ||
NATS_HOST: nats | ||
NATS_PORT: ${{ job.services.redis.ports['6379'] }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Pull request testing | ||
|
||
on: | ||
pull_request | ||
|
||
jobs: | ||
release: | ||
name: 'Run linter and tests' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 13 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Run linter | ||
run: npm run lint | ||
- name: Run tests | ||
run: npm test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
release: | ||
name: 'Release NPM, GitHub' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 13 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Run tests | ||
run: npm test | ||
- name: Re-generate examples | ||
run: npm generate:examples | ||
- name: Get version from package.json before release step | ||
id: initversion | ||
run: echo "::set-output name=version::$(npm run get-version --silent)" | ||
- name: Release to NPM and GitHub | ||
id: release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GIT_AUTHOR_NAME: asyncapi-bot | ||
GIT_AUTHOR_EMAIL: info@asyncapi.io | ||
GIT_COMMITTER_NAME: asyncapi-bot | ||
GIT_COMMITTER_EMAIL: info@asyncapi.io | ||
run: npm run release | ||
- name: Get version from package.json after release step | ||
id: extractver | ||
run: echo "::set-output name=version::$(npm run get-version --silent)" | ||
- name: Create Pull Request with updated package files | ||
if: steps.initversion.outputs.version != steps.extractver.outputs.version | ||
uses: peter-evans/create-pull-request@v2.4.4 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
commit-message: 'chore(release): ${{ steps.extractver.outputs.version }}' | ||
committer: asyncapi-bot <info@asyncapi.io> | ||
author: asyncapi-bot <info@asyncapi.io> | ||
title: 'chore(release): ${{ steps.extractver.outputs.version }}' | ||
body: 'Version bump in package.json and package-lock.json for release [${{ steps.extractver.outputs.version }}](https://github.com/${{github.repository}}/releases/tag/v${{ steps.extractver.outputs.version }})' | ||
branch: version-bump/${{ steps.extractver.outputs.version }} | ||
- name: Publish information about the release to Twitter | ||
if: steps.initversion.outputs.version != steps.extractver.outputs.version | ||
uses: m1ner79/Github-Twittction@v1.0.1 | ||
with: | ||
twitter_status: "Release ${{ steps.extractver.outputs.version }} for ${{github.repository}} is out in the wild 😱💪🍾🎂\n\nThank you for the contribution ${{ github.event.commits[0].author.name }} https://github.com/${{github.repository}}/releases/tag/v${{ steps.extractver.outputs.version }}" | ||
twitter_consumer_key: ${{ secrets.TWITTER_CONSUMER_KEY }} | ||
twitter_consumer_secret: ${{ secrets.TWITTER_CONSUMER_SECRET }} | ||
twitter_access_token_key: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }} | ||
twitter_access_token_secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Manage stale issues and PRs | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v1.1.0 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: | | ||
This issue has been automatically marked as stale because it has not had recent activity :sleeping: | ||
It will be closed in 30 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation. | ||
Thank you for your contributions :heart: | ||
stale-pr-message: | | ||
This pull request has been automatically marked as stale because it has not had recent activity :sleeping: | ||
It will be closed in 30 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation. | ||
Thank you for your contributions :heart: | ||
days-before-stale: 60 | ||
days-before-close: 30 | ||
stale-issue-label: stale | ||
stale-pr-label: stale | ||
exempt-issue-label: keep-open | ||
exempt-pr-label: keep-open |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
test/actual_comparators/* | ||
dist |
Oops, something went wrong.