Skip to content

Commit

Permalink
chore: gha
Browse files Browse the repository at this point in the history
* ci: try centralized pr validation

* chore: auto-update metadata coverage in METADATA_SUPPORT.md

* ci: test perf nuts

* ci: cli, install/build

* ci: parameterized os

* ci: git config first

* chore: auto-update metadata coverage in METADATA_SUPPORT.md

* test: record perf [ci skip]

* ci: try windows

* ci: try git status on windows

* ci: windows 1 test, log output dir

* ci: windows 1 test, more char replace

* ci: cache yarn

* ci: is windows saving the file

* ci: assert file saving, no --

* ci: try to eliminate extra dashes

* ci: try to eliminate extra dashes

* ci: windows verify file

* ci: compare both os

* test: record perf [ci skip]

* ci: restore 3 scale nuts

* ci: git stuff on NOT windows

* test: record perf [ci skip]

* dont run push tests on main

* ci: externalize git config

* ci: are actions case sensitive

* ci: semicolons separate scale commands

* test: record perf [ci skip]

* ci: better logging

* test: record perf [ci skip]

* ci: attempt external nuts

* ci: rerun push test

* ci: nuts with secrets

* ci: external nuts on both os via matrix

* ci: comment

* ci: naming, all extNuts

* ci: with primer

* ci: only use circle for release

* ci: full tests flow

* test: record perf [ci skip]

* test: try skipping a test

* test: record perf [ci skip]

* ci: split nuts by os

* test: skip tests of unused code

* test: record perf [ci skip]

* ci: change registry check job name

* ci: externalize git config

* ci: rename preview registry job

* test: record perf [ci skip]

* ci: more parallelization on deploy nuts, renames

* test: record perf [ci skip]

* fix: make typedoc work again

* ci: publish on merge to main

* ci: remove circle

* test: record perf [ci skip]

* refactor: pr feedback

* test: record perf [ci skip]

* docs: perf test results readme

* ci: complete nuts when possible

* chore: auto-update metadata coverage in METADATA_SUPPORT.md

* test: record perf [ci skip]

* test: record perf [ci skip]

Co-authored-by: SF-CLI-BOT <[email protected]>
  • Loading branch information
mshanemc and SF-CLI-BOT authored Aug 31, 2022
1 parent caae569 commit 9439889
Show file tree
Hide file tree
Showing 35 changed files with 524 additions and 284 deletions.
259 changes: 0 additions & 259 deletions .circleci/config.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/autointegrator.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: automerge
on:
workflow_dispatch:
schedule:
- cron: '42 2,5,8,11 * * *'

jobs:
automerge:
uses: salesforcecli/github-workflows/.github/workflows/automerge.yml@main
with:
mergeMethod: squash

14 changes: 14 additions & 0 deletions .github/workflows/onPushToMain.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: version, tag and github release

on:
push:
branches: [main]

jobs:
release:
uses: salesforcecli/github-workflows/.github/workflows/githubRelease.yml@main
secrets: inherit
docs:
uses: salesforcecli/github-workflows/.github/workflows/publishTypedoc.yml@main
secrets: inherit
needs: release
18 changes: 18 additions & 0 deletions .github/workflows/onRelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# when a github release happens, publish an npm package,
on:
release:
types: [released]
# support manual release
workflow_dispatch:
inputs:
tag:
description: tag that needs to publish
type: string
required: true
jobs:
npm:
uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main
with:
ctc: false
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
secrets: inherit
32 changes: 32 additions & 0 deletions .github/workflows/perfScaleNut.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# runs some very-large-repo tests (for windows filesystem limits) and commits perf results for comparison
name: perf-scale-nuts
on:
workflow_call:
inputs:
os:
type: string
required: false
default: 'ubuntu-latest'

jobs:
perf-scale-nuts:
runs-on: ${{ inputs.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: latest
cache: yarn
- run: npm install -g sfdx-cli --omit=dev
- run: yarn install
- run: yarn build
- run: yarn test:nuts:scale
- uses: salesforcecli/github-workflows/.github/actions/gitConfig@main
- run: git status
- run: git add test/nuts/perfResults
- run: 'git commit -m "test: record perf [ci skip]" --no-verify'
# git on windows won't recognize the changes in the results files
# when that is working, remove these if statements so we can track perf
if: runner.os != 'Windows'
- run: git push --no-verify
if: runner.os != 'Windows'
6 changes: 3 additions & 3 deletions .github/workflows/registryCheck.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Checks registry against metadataCoverageReport (current release)
name: registry-check

on:
workflow_dispatch:
schedule:
Expand All @@ -7,7 +9,7 @@ on:

jobs:
registry-check:
runs-on: "ubuntu-latest"
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -16,5 +18,3 @@ jobs:
- run: yarn install
- run: yarn build
- run: yarn test:registry


8 changes: 4 additions & 4 deletions .github/workflows/registryCheckPreview.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Checks registry against metadataCoverageReport (next release) and reports values to slack

name: registry-check-preview
on:
workflow_dispatch:
Expand All @@ -6,8 +8,8 @@ on:
- cron: 34 3 * * 1

jobs:
registry-check:
runs-on: "ubuntu-latest"
registry-check-preview:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -18,5 +20,3 @@ jobs:
- run: yarn metadata:preview
env:
DEFAULT_SLACK_WEBHOOK: ${{ secrets.CLI_TEAM_SLACK_WEBHOOK_URL }}


Loading

0 comments on commit 9439889

Please sign in to comment.