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

Commit

Permalink
Merge pull request #59 from sudogroup/github-actions
Browse files Browse the repository at this point in the history
added more github action, docs and lgtm
  • Loading branch information
Mazen authored Feb 23, 2021
2 parents 484463b + b051998 commit 62b4535
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 23 deletions.
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"

0 comments on commit 62b4535

Please sign in to comment.