Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
feat: initial version (#1)
Browse files Browse the repository at this point in the history
Initial version.

Co-authored-by: Fran Méndez <fmvilas@gmail.com>
  • Loading branch information
jonaslagoni and fmvilas authored Dec 10, 2020
1 parent 4e4b407 commit 8af4617
Show file tree
Hide file tree
Showing 86 changed files with 14,741 additions and 68 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pull-request-integration-testing.yml
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'] }}

23 changes: 23 additions & 0 deletions .github/workflows/pull-request-testing.yml
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

60 changes: 60 additions & 0 deletions .github/workflows/release.yml
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 }}
41 changes: 0 additions & 41 deletions .github/workflows/sentiment-analysis.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/stale-issues-prs.yml
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
25 changes: 0 additions & 25 deletions .github/workflows/welcome-first-time-contrib.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
test/actual_comparators/*
dist
Loading

0 comments on commit 8af4617

Please sign in to comment.