-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5da7de1
commit c1cf708
Showing
9 changed files
with
50 additions
and
51 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
extends: | ||
- "@commitlint/config-conventional" | ||
- "@open-turo/commitlint-config-conventional" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea/ |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,33 @@ | ||
name: "GitHub Action Lint" | ||
description: "Lints GitHub Actions" | ||
name: GitHub Action Lint | ||
description: Lints GitHub Actions | ||
inputs: | ||
checkout-repo: | ||
required: false | ||
description: "Perform checkout as first step of action" | ||
default: true | ||
description: Perform checkout as first step of action | ||
default: "true" | ||
github-token: | ||
required: true | ||
description: "GitHub token that can create/delete comments. Usually - 'secrets.GITHUB_TOKEN'" | ||
description: GitHub token that can create/delete comments. Usually - 'secrets.GITHUB_TOKEN' | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
if: inputs.checkout-repo | ||
with: | ||
fetch-depth: 0 | ||
- uses: wagoid/commitlint-github-action@v4 | ||
if: (github.actor!= 'dependabot[bot]') && (contains(github.head_ref, 'dependabot/github_actions/') == false) | ||
with: | ||
configFile: .commitlintrc.yml | ||
- name: Run npm ci if needed | ||
if: hashFiles('package-lock.json') != '' | ||
shell: bash | ||
run: npm ci | ||
- uses: KeisukeYamashita/[email protected] | ||
- name: Install actionlint | ||
uses: KeisukeYamashita/[email protected] | ||
with: | ||
repository: rhysd/actionlint | ||
- uses: actions/setup-python@v2 | ||
- uses: pre-commit/[email protected] | ||
- uses: open-turo/actions-gha/check-build@v1 | ||
- name: Pre-commit | ||
uses: open-turo/action-pre-commit@v1 | ||
- name: Check build | ||
uses: open-turo/actions-gha/check-build@v1 | ||
if: hashFiles('package-lock.json') != '' | ||
with: | ||
github-token: ${{ inputs.github-token }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
name: "GitHub Action: Test" | ||
description: "Tests GitHub Actions" | ||
name: GitHub Action Test | ||
description: Tests GitHub Actions | ||
inputs: | ||
checkout-repo: | ||
required: false | ||
description: "Perform checkout as first step of action" | ||
default: true | ||
description: Perform checkout as first step of action | ||
default: "true" | ||
github-token: | ||
required: true | ||
description: "GitHub token passed to coveralls. Usually - 'secrets.GITHUB_TOKEN'. Coveralls uses this token to verify the posted coverage data on the repo and create a new check based on the results. It is built into Github Actions and does not need to be manually specified in your secrets store." | ||
description: GitHub token passed to coveralls. Usually - 'secrets.GITHUB_TOKEN'. Coveralls uses this token to verify the posted coverage data on the repo and create a new check based on the results. It is built into Github Actions and does not need to be manually specified in your secrets store. | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
if: inputs.checkout-repo | ||
- name: Test node | ||
if: hashFiles('package-lock.json') != '' | ||
shell: bash | ||
run: | | ||
npm ci | ||
npm test -- --coverage | ||
- uses: coverallsapp/github-action@master | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
if: hashFiles('package-lock.json') != '' | ||
with: | ||
github-token: ${{ inputs.github-token }} |