Skip to content
This repository has been archived by the owner on Jul 29, 2021. It is now read-only.

added more github action, docs and lgtm #59

Merged
merged 1 commit into from
Feb 23, 2021
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: 0 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,26 +61,3 @@ jobs:
uses: JesseTG/[email protected]
with:
path: "config.json"
doc:
name: Documentation
# setup global configurations
strategy:
matrix:
node-version: [12.x]
platform: [ubuntu-latest]
# Build OS
runs-on: ${{ matrix.platform }}
# CI
steps:
- uses: actions/checkout@v2
# select nodejs v12
- name: Build Docs using Node.js v${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# install packages
- name: Install Packages
run: npm i
# build doc
- name: Build docs
run: npm run docs
42 changes: 42 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# credits:
# - CI with Jest: https://joelhooks.com/jest-and-github-actions
name: CI
on:
push:
branches:
- main
jobs:
doc:
name: Documentation
# setup global configurations
strategy:
matrix:
node-version: [12.x]
platform: [ubuntu-latest]
# Build OS
runs-on: ${{ matrix.platform }}
# CI
steps:
- uses: actions/checkout@v2
# select nodejs v12
- name: Build Docs using Node.js v${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# install packages
- name: Install Packages
run: npm i
# build doc
- name: Build docs
run: npm run docs
- name: Commit docs
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add -f docs
git commit -m "Generating docs"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
19 changes: 19 additions & 0 deletions .github/workflows/lgtm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Send LGTM reaction
on:
issue_comment:
types: [created]
pull_request_review:
types: [submitted]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: micnncim/action-lgtm-reaction@master # Set some version.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIPHY_API_KEY: ${{ secrets.GIPHY_API_KEY }}
with:
trigger: '[".*looks good to me.*"]'
override: true
source: "giphy"