Skip to content

Commit

Permalink
Merge pull request #5644 from netlify/integrate-zisi-repo
Browse files Browse the repository at this point in the history
chore: integrate netlify/zip-it-and-ship-it
  • Loading branch information
Skn0tt authored May 22, 2024
2 parents 9f69a33 + d889898 commit 7b7d086
Show file tree
Hide file tree
Showing 835 changed files with 116,877 additions and 2,310 deletions.
10 changes: 9 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ const config = {
'packages/build/test-d/**',
'packages/build/types/**',
// don't lint fixtures
'packages/*/tests/**/fixtures/**',
'packages/*/tests/**/fixtures*/**',
'packages/*/benchmarks/**/fixtures*/**',
'packages/framework-info/test/fixtures/**',
'packages/framework-info/dist/**',
'packages/*/lib/**',
'packages/*/dist/**',

'packages/edge-bundler/deno/**/*',
'packages/edge-bundler/node/vendor/**',
Expand Down Expand Up @@ -66,6 +68,12 @@ const config = {
'@typescript-eslint/no-empty-function': 'off',
},
},
{
files: ['packages/zip-it-and-ship-it/tests/**'],
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
},
},
],
}

Expand Down
3 changes: 3 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
paths-ignore:
- packages/zip-it-and-ship-it/benchmarks/fixtures
- packages/zip-it-and-ship-it/tests/fixtures
36 changes: 36 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Benchmark ZISI

on:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- 'packages/zip-it-and-ship-it/**'
workflow_dispatch:

jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '*'
cache: 'npm'
check-latest: true

- name: Install dependencies
run: npm ci

- name: Run benchmarks
run: npm run benchmark
working-directory: packages/zip-it-and-ship-it

- name: Run Delta
uses: netlify/delta-action@v4
with:
title: '⏱ Benchmark results'
token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ jobs:
deno-version: 'v1.x'
fail-fast: false
steps:
# Increasing the maximum number of open files. See:
# https://github.com/actions/virtual-environments/issues/268
- name: Increase open file limit
run: sudo ulimit -Sn 65536
if: "${{ matrix.os == 'macOS-latest' }}"
- run: git config --global core.symlinks true
# Sets an output parameter if this is a release PR
- name: Check for release
id: release-check
Expand Down
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# don't format fixtures (sometimes faulty behaviour is desired)
packages/*/tests/**/fixtures/**
packages/*/test/**/fixtures/**
packages/*/test/**/fixtures*/**
packages/*/benchmarks/**/fixtures*/**
packages/framework-info/test/fixtures/**
# don't lint outputs
packages/*/lib
packages/*/dist
# don't lint deno files
packages/edge-bundler/deno/**
# don't lint vendored files
Expand Down
3 changes: 2 additions & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"packages/redirect-parser": "14.3.0",
"packages/run-utils": "5.1.1",
"packages/opentelemetry-sdk-setup": "1.1.2",
"packages/opentelemetry-utils": "1.2.1"
"packages/opentelemetry-utils": "1.2.1",
"packages/zip-it-and-ship-it": "9.32.2"
}
Loading

0 comments on commit 7b7d086

Please sign in to comment.