chore: Added (some) config options to README #1
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
name: Continuous Integration | |
on: push | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: technote-space/auto-cancel-redundant-job@v1 | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: '13.x' | |
- name: Setup Cache | |
uses: actions/[email protected] | |
with: | |
path: .yarn | |
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | |
- name: Install dependencies | |
run: yarn install --immutable | |
env: | |
YARN_CHECKSUM_BEHAVIOR: update | |
############################################################################### | |
# COMMITLINT # | |
############################################################################### | |
commitlint: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Commit Lint | |
uses: wagoid/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
############################################################################### | |
# ESLINT # | |
############################################################################### | |
eslint: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: '13.x' | |
- name: Setup Cache | |
uses: actions/[email protected] | |
with: | |
path: .yarn | |
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | |
- name: Install dependencies | |
run: yarn install --immutable --immutable-cache | |
- name: ESLint | |
run: yarn run eslint | |
############################################################################### | |
# TEST # | |
############################################################################### | |
test: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: '13.x' | |
- name: Setup Cache | |
uses: actions/[email protected] | |
with: | |
path: .yarn | |
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | |
- name: Install dependencies | |
run: yarn install --immutable --immutable-cache | |
- name: Test | |
run: yarn run test | |
- uses: devmasx/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
result_path: coverage/lcov.info | |
min_coverage: 90 | |
type: lcov | |
############################################################################### | |
# RELEASE # | |
############################################################################### | |
release: | |
needs: [test, eslint, commitlint] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Get branch | |
uses: rlespinasse/[email protected] | |
- name: Release | |
uses: ridedott/[email protected] | |
if: ${{ env.GITHUB_REF_SLUG == 'master' }} | |
with: | |
node-module: true | |
release-rules: '[{"scope":"deps-dev","release":false},{"scope":"no-release","release":false},{"release":"patch","type":"build"},{"release":"patch","type":"chore"},{"release":"patch","type":"ci"},{"release":"patch","type":"docs"},{"release":"patch","type":"improvement"},{"release":"patch","type":"refactor"},{"release":"minor","type":"feat"},{"release":false,"subject":"*\\[skip release\\]*"}]' | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} |