Skip to content

Commit

Permalink
fix(): align CI to standard & cleanup mess
Browse files Browse the repository at this point in the history
  • Loading branch information
lanathlor committed Apr 19, 2021
1 parent 2e885b6 commit e54d9a2
Show file tree
Hide file tree
Showing 90 changed files with 139 additions and 18,885 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/deploy.yaml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Doc release
on:
workflow_run:
workflows: ["Node.js CI Tests"]
branches: [ master ]
types:
- completed

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]

- name: Install and Doc
run: |
npm i
npm run doc
- name: Deploy Doc
uses: JamesIves/[email protected]
with:
branch: doc
folder: doc
13 changes: 13 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Pull Request Labeler"

on:
pull_request:
branches: [ master, dev ]

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
39 changes: 39 additions & 0 deletions .github/workflows/semVerRelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: SemVer release

on:
workflow_run:
workflows: ["Node.js CI Tests"]
branches: [ master ]
types:
- completed

jobs:
release:
name: Release

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.GH_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_AUTHOR_NAME: bhc-bot
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: bhc-bot
GIT_COMMITTER_EMAIL: [email protected]
run: npx semantic-release
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Node.js CI Tests

on:
pull_request:
branches: [ master, dev ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }} to build

uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Setup Node.js
run: npm i

- name: Building package
run: npm run build --if-present

- name: Running tests
run: npm run test
env:
CI: true

- name: Running coverage
run: npm run cov
env:
CI: true
19 changes: 19 additions & 0 deletions .github/workflows/tslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: tslint

on:
pull_request:
branches: [ master, dev ]

jobs:
job:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v1
- name: Prepare
run: npm i
- name: Lint
uses: mooyoul/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
pattern: '*.ts'
3 changes: 0 additions & 3 deletions note.txt

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"docker:build": "./scripts/createDocker.sh $npm_package_name:$npm_package_version",
"docker:start": "./scripts/runDocker.sh $npm_package_name:$npm_package_version",
"docker:test": "./scripts/testDocker.sh $npm_package_name-test:$npm_package_version && ./scripts/runTestDocker.sh $npm_package_name-test:$npm_package_version",
"doc": "jsdoc --verbose --pedantic -c ./Docs/conf.json . ./README.md"
"doc": "typedoc -plugin typedoc-plugin-param-names --excludePrivate --excludeInternal ./src/* --out doc",
"doc:internal": "typedoc -plugin typedoc-plugin-param-names --excludeInternal false ./src/* --out internal"
},
"keywords": [
"template"
Expand Down
39 changes: 0 additions & 39 deletions src/Docs/conf.json

This file was deleted.

Loading

0 comments on commit e54d9a2

Please sign in to comment.