Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/trunk' into update/social-logos-…
Browse files Browse the repository at this point in the history
…threads
  • Loading branch information
jeherve committed Jul 17, 2023
2 parents 2f03378 + 3fb5155 commit d293a69
Show file tree
Hide file tree
Showing 147 changed files with 2,580 additions and 2,121 deletions.
4 changes: 2 additions & 2 deletions .github/files/jetpack-staging-sites/k6-frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import http from 'k6/http';
import { sites } from './k6-shared.js';

export const options = {
vus: 3,
iterations: 3,
vus: 1,
iterations: 1,
thresholds: {
checks: [
{
Expand Down
67 changes: 0 additions & 67 deletions .github/files/renovate-close-old-PRs.sh

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/jetpack-staging-sites-k6-tests.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/renovate-cleanup.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/update-jetpack-staging-sites.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Update Jetpack Staging Test Sites
# Ran as part of the `UpdateJetpackStaging` TeamCity build.
# After updating the sites, runs k6 tests against the same sites.

on:
workflow_dispatch:
Expand All @@ -24,3 +25,26 @@ jobs:
- name: Execute shell script
shell: bash
run: .github/files/jetpack-staging-sites/update-jetpack-staging-sites.sh

run_k6_tests:
needs: run_shell_script
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Run k6 frontend tests
uses: grafana/k6-action@v0.3.0
with:
filename: .github/files/jetpack-staging-sites/k6-frontend.js
env:
JETPACKSTAGING_K6_USERNAME: ${{ secrets.JETPACKSTAGING_K6_USERNAME }}
JETPACKSTAGING_K6_PASSWORD: ${{ secrets.JETPACKSTAGING_K6_PASSWORD }}

- name: Run k6 backend tests
uses: grafana/k6-action@v0.3.0
with:
filename: .github/files/jetpack-staging-sites/k6-backend.js
env:
JETPACKSTAGING_K6_USERNAME: ${{ secrets.JETPACKSTAGING_K6_USERNAME }}
JETPACKSTAGING_K6_PASSWORD: ${{ secrets.JETPACKSTAGING_K6_PASSWORD }}
9 changes: 9 additions & 0 deletions .pnpmfile.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@ function fixDeps( pkg ) {
pkg.peerDependencies[ '@babel/runtime' ] = '^7';
}

// Annoying tilde dep, already fixed in storybook 7.1
if ( pkg.name === '@storybook/codemod' || pkg.name === '@storybook/csf-tools' ) {
for ( const [ dep, ver ] of Object.entries( pkg.dependencies ) ) {
if ( dep.startsWith( '@babel/' ) && ver.startsWith( '~' ) ) {
pkg.dependencies[ dep ] = '^' + ver.substring( 1 );
}
}
}

return pkg;
}

Expand Down
Loading

0 comments on commit d293a69

Please sign in to comment.