Skip to content

Commit

Permalink
docs: updates on workflows
Browse files Browse the repository at this point in the history
Added information on documentation
  • Loading branch information
ADMSK\AVROGAL1 committed Mar 27, 2021
1 parent 02fd56f commit 6333e1d
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 33 deletions.
51 changes: 51 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
codecov:
notify:
wait_for_ci: false
require_ci_to_pass: true
strict_yaml_branch: master
branch: master

coverage:
precision: 2
round: down
range: '70...100'

status:
project:
default:
base: auto
informational: true
target: 95%
threshold: 1%
patch:
default:
informational: true
target: 80%
threshold: 1%
changes: no

notify:
# Wait for reasonable amount of tests to complete before
# reporting coverage
after_n_builds: 8

ignore:
- '**/generated/**'
- 'standalone'
- 'test'

parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no

comment:
layout: 'header, reach, diff, flags, files, footer'
behavior: default
require_changes: false
require_base: false
require_head: true
branches: [ 'master' ]
25 changes: 21 additions & 4 deletions .github/workflows/CI.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test
name: CI

on:
push:
Expand Down Expand Up @@ -38,8 +38,25 @@ jobs:
- name: Install
run: yarn install

- name: Lint
run: yarn all

- name: Jest
run: yarn test
run: yarn test:all

- name: Lint
run: yarn lint
- name: Check
run: yarn check:all

- name: Circular dependency check
uses: gerrit0/circular-dependency-check@v1
with:
entry: dist/index.js

- name: coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: actions ${{ matrix.node }}
file: ./coverage/coverage-final.json
fail_ci_if_error: true
verbose: true
28 changes: 2 additions & 26 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,3 @@
FROM gitpod/workspace-full-vnc:latest

# Docker build does not rebuild an image when a base image is changed, increase this counter to trigger it.
ENV TRIGGER_REBUILD 3

# Install custom tools, runtime, etc.
RUN sudo apt-get update \
# window manager
&& sudo apt-get install -y jwm \
# electron
&& sudo apt-get install -y libgtk-3-0 libnss3 libasound2 libgbm1 \
# native-keymap
&& sudo apt-get install -y libx11-dev libxkbfile-dev \
&& sudo rm -rf /var/lib/apt/lists/*

ENV NODE_VERSION="12.14.1"
RUN bash -c ". .nvm/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm use $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& npm install -g yarn"
ENV PATH=$HOME/.nvm/versions/node/v${NODE_VERSION}/bin:$PATH




#!/bin/echo docker build . -f
# -*- coding: utf-8 -*-

Expand Down Expand Up @@ -68,6 +42,8 @@ RUN sudo apt-get update && \
libxtst-dev \
libxss1 \
libxss-dev \
libx11-dev \
libxkbfile-dev \
software-properties-common \
build-essential \
xvfb \
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
[![DOI](https://zenodo.org/badge/340115021.svg)](https://zenodo.org/badge/latestdoi/340115021)
[![dependencies Status](https://status.david-dm.org/gh/AlexRogalskiy/typescript-tools.svg)](https://david-dm.org/AlexRogalskiy/typescript-tools)

[![codecov](https://codecov.io/gh/AlexRogalskiy/typescript-tools/branch/master/graph/badge.svg?token=M0d8w0Z7ME)](https://codecov.io/gh/AlexRogalskiy/typescript-tools)
[![CI](https://github.com/AlexRogalskiy/typescript-tools/workflows/CI/badge.svg)](https://github.com/AlexRogalskiy/typescript-tools/actions/workflows/build.yml)

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://raw.githubusercontent.com/alexrogalskiy/typescript-tools/master/LICENSE?token=AH44ZFH7IF2KSEDK7LSIW3C7YOFYC)
[![Issue](https://img.shields.io/github/issues/alexrogalskiy/typescript-tools)](https://img.shields.io/github/issues/alexrogalskiy/typescript-tools)
[![Forks](https://img.shields.io/github/forks/alexrogalskiy/typescript-tools)](https://img.shields.io/github/forks/alexrogalskiy/typescript-tools)
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"yarn:import": "del-cli --dot=true ./yarn.lock && yarn import",
"prepublishOnly": "npm run check:all && npm run build",
"postpublish": "npm run clean",
"prebuild": "rimraf dist coverage",
"prebuild": "del-cli dist coverage",
"build": "tsdx build",
"watch": "tsdx watch",
"clean": "del-cli --dot=true \"./dist/**/*\"",
Expand All @@ -24,7 +24,7 @@
"yaspeller": "yaspeller .",
"markdown:check": "markdown-link-check ./README.md ./SECURITY.md",
"lint": "eslint --cache --fix --quiet --cache-location ./node_modules/.cache/ --format codeframe --ext js,ts .",
"lint:clean": "rimraf .eslintcache",
"lint:clean": "del-cli .eslintcache",
"lint:report": "tsdx lint src tools --report-file report.json",
"license:badge": "license-badger --corrections --uncategorizedLicenseTemplate \"\\${license} (\\${name} (\\${version}))\" --filteredTypes=weaklyProtective,protective --textTemplate \"License types\n(project, deps, and bundled devDeps)\" --licenseTypeColor networkProtective=blue,s{white} --packageJson --production -l licenseInfo.json ./badges/licenses-badge.svg",
"license:badge-dev": "license-badger --corrections --filteredTypes=weaklyProtective,protective --textTemplate \"License types\n(all devDeps)\" --licenseTypeColor networkProtective=blue,s{white} --allDevelopment -l licenseInfo.json ./badges/licenses-badge-dev.svg",
Expand Down Expand Up @@ -109,7 +109,6 @@
"remark-preset-davidtheclark": "^0.12.0",
"remark-validate-links": "^10.0.2",
"conventional-changelog-cli": "^2.0.0",
"rimraf": "^3.0.2",
"semantic-release": ">=17.2.3",
"slugify": "^1.4.6",
"styled-components": "^4.3.2",
Expand Down

0 comments on commit 6333e1d

Please sign in to comment.