-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into users/eisenbergeffect/pr-and-issue-templates
- Loading branch information
Showing
1,100 changed files
with
105,995 additions
and
30,512 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,3 +1,6 @@ | ||
# Never lint test files | ||
*.spec.ts | ||
|
||
# Never lint node_modules | ||
node_modules | ||
|
||
|
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,40 @@ | ||
name: CI - FAST Manual Publish | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_linux: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
NPM_PAT: ${{ secrets.NPM_PAT}} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_SERVICE_PAT: ${{ secrets.GH_PAT }} | ||
GITHUB_SERVICE_USER: "Microsoft FAST Builds" | ||
GITHUB_SERVICE_EMAIL: "[email protected]" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Add or Update packages | ||
run: sudo yarn global add lerna | ||
|
||
- name: Authenticate Git for Pushes | ||
run: | | ||
git config --global user.name "${{ env.GITHUB_SERVICE_USER }}" | ||
git config --global user.email "${{ env.GITHUB_SERVICE_EMAIL }}" | ||
- name: Install package dependencies / prepare workspaces | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Testing Prettier format | ||
run: lerna run prettier:diff | ||
|
||
- name: Testing unit tests | ||
run: lerna run test --stream | ||
|
||
- name: Publish NPM changed packages | ||
run: | | ||
yarn publish-ci -y -n $NPM_PAT | ||
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,41 @@ | ||
name: CI - FAST Publish | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
build_linux: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
NPM_PAT: ${{ secrets.NPM_PAT}} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_SERVICE_PAT: ${{ secrets.GH_PAT }} | ||
GITHUB_SERVICE_USER: "Microsoft FAST Builds" | ||
GITHUB_SERVICE_EMAIL: "[email protected]" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Add or Update packages | ||
run: sudo yarn global add lerna | ||
|
||
- name: Authenticate Git for Pushes | ||
run: | | ||
git config --global user.name "${{ env.GITHUB_SERVICE_USER }}" | ||
git config --global user.email "${{ env.GITHUB_SERVICE_EMAIL }}" | ||
- name: Install package dependencies / prepare workspaces | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Testing Prettier format | ||
run: lerna run prettier:diff | ||
|
||
- name: Testing unit tests | ||
run: lerna run test --stream | ||
|
||
- name: Publish NPM changed packages | ||
run: | | ||
yarn publish-ci -y -n --no-publish $NPM_PAT | ||
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,74 +1,148 @@ | ||
name: CI - FAST Validation | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
schedule: | ||
- cron: 0 7 * * 3 | ||
|
||
|
||
- cron: 0 7 * * 3 | ||
|
||
jobs: | ||
build_windows: | ||
name: Validate on Windows | ||
runs-on: windows-latest | ||
|
||
linux_cross-platform_cross-browser: | ||
runs-on: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/[email protected] | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo '::set-output name=dir::$(yarn cache dir)' | ||
|
||
- name: Set up node_modules cache | ||
uses: actions/[email protected] | ||
id: yarn-cache | ||
with: | ||
node-version: '10' | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install Lerna | ||
run: npm i -g lerna | ||
- name: Install package dependencies | ||
run: yarn install --frozen-lockfile --ignore-scripts | ||
|
||
- name: Install package dependencies / prepare workspaces | ||
run: | | ||
yarn install --frozen-lockfile | ||
- name: Prepare workspaces | ||
run: yarn prepare | ||
|
||
- name: Ensure Prettier formatting | ||
run: lerna run prettier:diff | ||
- name: Testing Prettier format | ||
run: yarn format:check | ||
|
||
- name: Execute unit tests | ||
run: lerna run test --stream | ||
- name: Testing unit tests | ||
run: yarn lerna run test --stream | ||
|
||
|
||
build_macos: | ||
name: Validate on MacOS | ||
|
||
runs-on: macos-latest | ||
- name: Test Playwright | ||
run: | | ||
cd packages/web-components/fast-components | ||
npm install playwright | ||
yarn test-chromium:pw | ||
yarn test-firefox:pw | ||
yarn test-webkit:pw | ||
- name: Initialize CodeQL | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: javascript, typescript | ||
|
||
- name: Perform CodeQL Analysis | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | ||
uses: github/codeql-action/analyze@v1 | ||
|
||
windows_cross-platform_cross-browser: | ||
runs-on: [windows-latest] | ||
|
||
steps: | ||
- name: Set git to use LF | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/[email protected] | ||
with: | ||
node-version: '10' | ||
- name: Display the path | ||
run: echo $PATH | ||
shell: bash | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo '::set-output name=dir::$(yarn cache dir)' | ||
|
||
- name: Install Lerna | ||
run: sudo yarn global add lerna | ||
- name: Set up node_modules cache | ||
uses: actions/[email protected] | ||
id: yarn-cache | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install package dependencies / prepare workspaces | ||
run: yarn install --frozen-lockfile | ||
- name: Install package dependencies | ||
run: yarn install --frozen-lockfile --ignore-scripts | ||
|
||
- name: Ensure Prettier formatting | ||
run: lerna run prettier:diff | ||
- name: Prepare workspaces | ||
run: yarn prepare | ||
|
||
- name: Execute unit tests | ||
run: lerna run test --stream | ||
- name: Testing Prettier format | ||
run: yarn format:check | ||
|
||
code_scan: | ||
name: Validate Security | ||
- name: Testing unit tests | ||
run: yarn lerna run test --stream | ||
|
||
- name: Test Playwright | ||
run: | | ||
cd packages/web-components/fast-components | ||
npm install playwright | ||
yarn test-chromium:pw | ||
yarn test-firefox:pw | ||
yarn test-webkit:pw | ||
runs-on: ubuntu-latest | ||
macos_cross-platform_cross-browser: | ||
runs-on: [macos-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo '::set-output name=dir::$(yarn cache dir)' | ||
|
||
- name: Set up node_modules cache | ||
uses: actions/[email protected] | ||
id: yarn-cache | ||
with: | ||
languages: javascript | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 | ||
- name: Install package dependencies | ||
run: yarn install --frozen-lockfile --ignore-scripts | ||
|
||
- name: Prepare workspaces | ||
run: yarn prepare | ||
|
||
- name: Testing Prettier format | ||
run: yarn format:check | ||
|
||
- name: Testing unit tests | ||
run: yarn lerna run test --stream | ||
|
||
- name: Test Playwright | ||
run: | | ||
cd packages/web-components/fast-components | ||
npm install playwright | ||
yarn test-chromium:pw | ||
yarn test-firefox:pw | ||
yarn test-webkit:pw |
Oops, something went wrong.