Skip to content

Commit

Permalink
Workflow changes (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed May 1, 2020
1 parent ffcd5fd commit d2dfeea
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 28 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: NPM Test

on: [push, pull_request]

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1.2.0
with:
node-version: ${{ matrix.node-version }}
- run: node --version
- run: npm --version
- run: npm ci
- run: npm test
9 changes: 8 additions & 1 deletion .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,21 @@ jobs:
cd source
npm ci
jsdoc -c jsdoc.json -d ../out
cd ../out
- name: Run prettier
run: |
cd out
sed -i -e 's:^[[:space:]]*<!--[[:space:]]*$::g' -e 's:^[[:space:]]*-->[[:space:]]*$::g' global.html
prettier . --write
- name: Create commit
if: always()
run: |
cd out
git add .
git config --local user.email ""
git config --local user.name "Github Actions"
git commit -a -m "Update api for ${{github.event.release.name}}" || true
- name: Create Pull Request
if: always()
id: cpr
uses: peter-evans/create-pull-request@v2
with:
Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit d2dfeea

Please sign in to comment.