This repository has been archived by the owner on Jul 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from sudogroup/github-actions
added more github action, docs and lgtm
- Loading branch information
Showing
3 changed files
with
61 additions
and
23 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 |
---|---|---|
|
@@ -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 |
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,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 }} |
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,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" |