⬆️ Updates markdownlint-cli to ^0.43.0 #6725
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: CI | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
- 'releases/*' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
strategy: | ||
max-parallel: 2 | ||
matrix: | ||
node-version: | ||
- 10.x | ||
- 11.x | ||
- 12.x | ||
- 14.x | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Setup PNPM | ||
uses: pnpm/action-setup@v1.2.1 | ||
with: | ||
version: 4.11.1 | ||
- name: Install Dependencies | ||
run: pnpm i | ||
- name: Build project | ||
run: | | ||
pnpm run build --if-present | ||
- name: Run tests | ||
run: | | ||
pnpm run test:all --if-present | ||
- name: Check | ||
run: | | ||
pnpm run check:all --if-present | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
if: hashFiles('./coverage/lcov.info') != '' | ||
env: | ||
NODE_COVERALLS_DEBUG: 1 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
parallel: true | ||
flag-name: run-${{ matrix.node-version }} | ||
- 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-version }} | ||
file: ./coverage/coverage-final.json | ||
fail_ci_if_error: true | ||
verbose: true | ||
test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
- name: Install Dependencies | ||
run: npm install | ||
- name: Build Dependencies | ||
run: npm run all | ||
- uses: ./ | ||
with: | ||
userName: AlexRogalskiy | ||
startDate: '2021-04-01' | ||
endDate: '2021-05-01' | ||
finish: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
if: hashFiles('./coverage/lcov.info') != '' | ||
Check failure on line 106 in .github/workflows/build.yml GitHub Actions / CIInvalid workflow file
|
||
steps: | ||
- name: Coveralls Finished | ||
uses: coverallsapp/github-action@v1.1.0 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
parallel-finished: true | ||
deploy: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
- name: Install Dependencies | ||
run: npm install | ||
- name: deploy | ||
uses: "marvinpinto/action-automatic-releases@v1.2.1" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
draft: true | ||
automatic_release_tag: ${{ github.event.inputs.tag_value || null }} | ||
files: | | ||
dist/*.js |