Remove CDN and benchmark workflows (#7001) #4244
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: Validate Platforms/Browsers | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: 0 7 * * 3 | |
jobs: | |
cross-platform_cross-browser: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-11] | |
env: | |
PLAYWRIGHT_BROWSERS_PATH: 0 | |
steps: | |
- name: Set git to use LF | |
if: ${{ matrix.os == 'windows-latest' }} | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- name: Checkout Branch | |
uses: actions/checkout@v2 | |
- if: ${{ github.event_name == 'pull_request' }} | |
run: | | |
git fetch --no-tags --prune --depth=1 origin +refs/heads/master:refs/remotes/origin/master | |
- name: Cache multiple paths | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install package dependencies | |
run: npm ci | |
- name: Test Prettier format | |
run: npm run format:check | |
- name: Build workspaces | |
run: npm run build | |
- name: Install playwright dependencies and browsers | |
run: | | |
npx playwright install | |
- name: Run tests in all Packages | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
run: npm run test | |
- 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 |