-
Notifications
You must be signed in to change notification settings - Fork 64
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
e5b1ac5
commit 12c223b
Showing
12 changed files
with
2,562 additions
and
71 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
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,60 @@ | ||
name: Run PR checks | ||
|
||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
pull_request: | ||
branches: [master] | ||
|
||
env: | ||
NX_BRANCH: ${{ github.event.number }} | ||
NX_RUN_GROUP: ${{ github.run_id }} | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
name: Building affected apps | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: bahmutov/npm-install@v1.4.5 | ||
- run: yarn nx affected -- --target=build --base=origin/master --parallel --with-deps | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
name: Testing affected apps | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: bahmutov/npm-install@v1.4.5 | ||
- run: yarn nx affected -- --target=test --base=origin/master --parallel | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
name: Linting affected apps | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: bahmutov/npm-install@v1.4.5 | ||
- run: yarn nx affected -- --target=lint --base=origin/master --parallel | ||
|
||
commitlint: | ||
runs-on: ubuntu-latest | ||
name: Check commit message for consistency | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: bahmutov/npm-install@v1.4.5 | ||
- run: yarn commitlint --from origin/master --to HEAD --verbose | ||
|
||
|
||
# e2e: | ||
# runs-on: ubuntu-latest | ||
# name: E2E testing affected apps | ||
# needs: [pre-run, build] | ||
# if: needs.pre-run.outputs.skip == 'false' | ||
# steps: | ||
# - uses: actions/checkout@v1 | ||
# - uses: bahmutov/npm-install@v1.4.5 | ||
# - name: Download a single artifact | ||
# uses: actions/download-artifact@v2 | ||
# with: | ||
# name: dist | ||
# path: dist | ||
# - run: yarn e2e |
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 @@ | ||
_ |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn commitlint --edit "$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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn lint-staged |
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,8 @@ | ||
const Configuration = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'scope-enum': [1, 'always', ['repo', 'dotnet', 'core', 'typescript']], | ||
}, | ||
}; | ||
|
||
module.exports = Configuration; |
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
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
Oops, something went wrong.