forked from microsoft/fast
-
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.
chore: update github action code climate (microsoft#3020)
* update to improve speed of filing PR * Revert "update to improve speed of filing PR" This reverts commit 83c177e. * update to try code climate reporter GH Action * update to next minor version * update string array * update to install latest lerna * update coverageCommand * update to not run helpers unit testing so I can validate issues with coverage * update to run tests on packages only * update to properly format for an 'action' input string * added testing script * updated to use new format provided by MartinNuc * updated to test alternative option * update version for codeclimate-action * update jest configurations to support monorepositories * update documentation for testing * update ci-daily with performance improvements * update to declutter, cleanup, and perf improvements * update to mark with a branch so hopefully does not fire a run * updates to resolve broken coverage mappings * update configuration to reduce errors * remove prettier upgrade as dev dep * remove produciton flag * update to revert back to working pipeline * update to coverage locations * update formatting mishap
- Loading branch information
Showing
24 changed files
with
328 additions
and
1,696 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
-P ubuntu-latest=nektos/act-environments-ubuntu:18.04 |
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,38 @@ | ||
# Local testing of GitHub Actions | ||
Leverage the knowledge from https://github.com/nektos/act for detailed instructions. | ||
|
||
## Install | ||
### 1. Install Docker | ||
Required to run GitHub Actions on VMs. Choose your preferred Docker setup https://docs.docker.com/get-docker/. | ||
|
||
### 2. Install Nektos | ||
Required to run GitHub Actions locally. | ||
|
||
```bash | ||
$ brew install nektos/tap/act | ||
``` | ||
|
||
### 3. Install Azure CLI | ||
Required to integrate GitHub Actions and Azure. | ||
|
||
```bash | ||
$ azure login | ||
``` | ||
|
||
## Configure | ||
The `.actrc` file contains the default configuration and run methods. The `./.github/workflows/testing/push.json` file contains the default GitHub events to run. | ||
|
||
Update the "ref" values in `./.github/workflows/testing/push.json` to point to the local git branch to test. Then perform the following to execute against that branch when running `act`. | ||
|
||
Run the event from the `/testing/*` folder as indicated with `-W` or `--workflows` arguments. | ||
|
||
```bash | ||
$ act -e `./.github/workflows/testing/push.json` -W "./.github/workflows/testing/" | ||
``` | ||
|
||
## Test | ||
`./.github/workflows/testing/ci-daily-local.yml` is used to test locally CI settings. | ||
|
||
```bash | ||
$ act -j build_local_linux -e "./.github/workflows/testing/push.json" -W "./.github/workflows/testing/" | ||
``` |
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,50 @@ | ||
name: CI - FAST Local Testing | ||
|
||
on: | ||
push: | ||
branches: | ||
- users/* | ||
|
||
jobs: | ||
build_local_linux: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Add/Update packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install yarn | ||
sudo yarn global upgrade typescript | ||
sudo yarn global add lerna | ||
- name: Install package dependencies / prepare workspaces | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Testing units | ||
run: lerna run test --stream | ||
|
||
- name: Collect and upload code coverage to Code Climate | ||
uses: paambaati/codeclimate-action@v2.6.0 | ||
env: | ||
CC_TEST_REPORTER_ID: 08a773cb4ea5811add5a45e12873e5cd2634c005568705cc37abfd5217617a32 | ||
with: | ||
coverageCommand: lerna run coverage | ||
coverageLocations: | | ||
${{github.workspace}}/packages/react/fast-components-foundation-react/coverage/lcov.info:lcov | ||
${{github.workspace}}/packages/react/fast-components-react-base/coverage/lcov.info:lcov | ||
${{github.workspace}}/packages/react/fast-components-react-msft/coverage/lcov.info:lcov | ||
${{github.workspace}}/packages/react/fast-components-styles-msft/coverage/lcov.info:lcov | ||
${{github.workspace}}/packages/react/fast-jss-manager/coverage/lcov.info:lcov | ||
${{github.workspace}}/packages/react/fast-jss-manager-react/coverage/lcov.info:lcov | ||
${{github.workspace}}/packages/react/fast-jss-utilities/coverage/lcov.info:lcov | ||
${{github.workspace}}/packages/react/fast-layouts-react/coverage/lcov.info:lcov | ||
${{github.workspace}}/packages/react/fast-react-utilities/coverage/lcov.info:lcov | ||
${{github.workspace}}/packages/tooling/fast-tooling/coverage/lcov.info:lcov | ||
${{github.workspace}}/packages/tooling/fast-tooling-react/coverage/lcov.info:lcov | ||
${{github.workspace}}/packages/utilities/fast-animation/coverage/lcov.info:lcov | ||
${{github.workspace}}/packages/utilities/fast-colors/coverage/lcov.info:lcov | ||
${{github.workspace}}/packages/utilities/fast-web-utilities/coverage/lcov.info:lcov | ||
${{github.workspace}}/sites/fast-component-explorer/coverage/lcov.info:lcov | ||
debug: true |
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,10 @@ | ||
{ | ||
"push": { | ||
"head": { | ||
"ref": "users/awentzel/update-action-cc" | ||
}, | ||
"base": { | ||
"ref": "users/awentzel/update-action-cc" | ||
} | ||
} | ||
} |
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
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.