1
0
mirror of synced 2025-12-31 15:04:15 -05:00
Commit Graph

108 Commits

Author SHA1 Message Date
Kevin Heis
2e0f7a1133 Remove fetch-depth: 0 by running git fetch instead (#30953) 2022-09-20 20:04:08 +00:00
Kevin Heis
f11af9cb33 Diff for merge_group (#30948)
Co-authored-by: Hector Alfaro <hectorsector@github.com>
2022-09-19 21:32:01 +00:00
Kevin Heis
dcb20c547f Fix a few issues with file diff workflows (#30928)
Co-authored-by: Hector Alfaro <hectorsector@github.com>
2022-09-19 20:22:31 +00:00
Kevin Heis
7753ef3583 Update test.yml 2022-09-19 10:06:21 -07:00
Kevin Heis
14497b39cf Diff using cli (#30923) 2022-09-19 16:54:31 +00:00
Peter Bengtsson
921cf5037f dry-run search scrape + index on PRs (#30861) 2022-09-19 14:32:23 +00:00
Peter Bengtsson
90b754fe3c Test JSON API without enabling dedicated search results page (#30542) 2022-09-06 17:05:22 +00:00
Peter Bengtsson
54991f70c9 connect to ES 7.11 (#30462)
Co-authored-by: Rachael Sewell <rachmari@github.com>
2022-09-06 11:50:40 +00:00
Peter Bengtsson
f8f20605f4 search api with elasticsearch (#29053)
* indexing records into Elasticsearch

* @elastic/elasticsearch@8.2.0

* mv

* fix the code

* pipe

* lfs

* use sha

* change how index names work

* search api with Elasticsearch

* works

* refactor client

* better snowballing

* remove dbg

* wip

* highlights and fuzzy search

* improvements and upgrade

* also upgrade

* wip

* index more explicitly

* better validation

* change max size

* popularity by ordinal ranking instead

* playing

* fix package-lock

* rearranging

* catchMiddlewareError

* fix indexing

* match_phrase_prefix on wrapped search

* refactorings

* escape html in content

* wip

* search by URL

* update lock file

* v1 api

* inroads on jest testing the search

* valid yaml hopefully

* index fixtures into local elasticsearch

* specific versions to index only

* small fixes

* feedbacked

* fix tests

* use the npm script
2022-08-05 19:40:38 +00:00
Ariel Deitcher
54c8a1a103 use Actions merge_group event 2022-07-22 17:08:16 +00:00
Peter Bengtsson
9e242eacb7 run jest tests on ubuntu-20.04-xl (#28568)
* run jest tests on ubuntu-20.04-xl

* cpu debug info

* compare with unbuntu-latest

* tidy back up
2022-06-16 16:09:27 +00:00
Peter Bengtsson
e32260a358 Pin to node-version 16.15.0 to get npm 8.5.5 on all runners (#28186)
* why is 'npm ci' no longer working

* ls

* check

* check

* check3

* ubuntu-latest

* debugging more

* debugging more

* before and after

* ubuntu-latest

* try upgrading actions/setup-node

* pin to exactly 16.15.0 for npm 8.5.5

* node-version 16.15.1 EVERYWHERE

* fix cleanup
2022-06-02 09:51:14 -04:00
Peter Bengtsson
4d288d9717 test CI with Node 16.15 (#27825) 2022-05-19 19:12:18 +00:00
dependabot[bot]
a9a7ad010c Bump actions/cache from 2.1.7 to 3.0.2 (#27017)
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.7 to 3.0.2.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](937d244753...48af2dc4a9)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Robert Sese <rsese@github.com>
2022-04-20 18:03:12 +00:00
dependabot[bot]
5515db7171 Bump actions/checkout from 2.4.0 to 3.0.1 (#27016)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.4.0 to 3.0.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.4.0...dcd71f646680f2efd8db4afa5ad64fdcba30e748)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Robert Sese <rsese@github.com>
2022-04-20 12:04:00 -05:00
Peter Bengtsson
bf65246f6a re-instate the 'linting' test group (#26525) 2022-03-29 20:41:41 +00:00
Peter Bengtsson
810bd77f0b not all tests need LFS (#26524)
* not all tests need LFS

* disk usage

* without

* not even checkout

* hand picked

* try that

* disk usage again

* final cleanup
2022-03-29 20:26:39 +00:00
Octomerger Bot
ac3d59a206 repo sync (#16442)
* Updated language to reference enabling instead of opt-in

* Optimize images

* fixing broken link

* Update content/get-started/privacy-on-github/about-githubs-use-of-your-data.md

Co-authored-by: Felicity Chapman <felicitymay@github.com>

* Update content/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository.md

Co-authored-by: Felicity Chapman <felicitymay@github.com>

* Update content/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository.md

Co-authored-by: Felicity Chapman <felicitymay@github.com>

* Openapi update api.github.com (#26398)

* Openapi 3.0 ghae (#26400)

* Update OpenAPI  Descriptions (#26397)

* Fix a change missed in a last minute update (#26389)

* change order of some site-policy docs (#26307)

* reordering the docs

* Create codespace.md

* Update README.md

* Update README.md

* Update codespace.md

* Update codespace.md

* Update codespace.md

* Update codespace.md

* Update OpenAPI  Descriptions

* update preview env app_url to preview.ghdocs.com (#26335)

* Fix flag (#26420)

* Update codespace.md

* Update codespace.md

* Update codespace.md

* Remove Caddy from preview envs (#26336)

* remove caddy from preview envs

* fix: remove location from template

Co-authored-by: Peter Bengtsson <mail@peterbe.com>

* Add `Ignore commits in the blame view` to blame docs (#26017)

* Connect addendum deprecation (#26296)

* temporarily commented  out

* also comment out

* also comment out

Co-authored-by: Jenni Christensen <97056108+dihydroJenoxide@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Felicity Chapman <felicitymay@github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
Co-authored-by: github-openapi-bot <69533958+github-openapi-bot@users.noreply.github.com>
Co-authored-by: Abby Vollmer <vollmera@users.noreply.github.com>
Co-authored-by: hubwriter <hubwriter@github.com>
Co-authored-by: docubot <67483024+docubot@users.noreply.github.com>
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
Co-authored-by: Jason Etcovitch <jasonetco@github.com>
Co-authored-by: Billy Rusteen <birust@github.com>
2022-03-22 11:47:40 -04:00
Peter Bengtsson
b685b6fda7 don't need disk caching for site data (#26333)
* reinstate

* start server manually

* routing tests too

* skip more

* sleep more and fail if not 200

* use e2etest for content/ too

* automatically start server for jest

* does this work?

* feedbacked

* rename things

* getting it to work

* add dev dependency

* install the right version

* don't need to start that

* fix package lock

* update readme about it

* feedbacked

* don't need disk caching for site-data
2022-03-19 16:05:27 +00:00
Peter Bengtsson
4fcd3ae25f automatically start server for jest (#26206)
* reinstate

* start server manually

* routing tests too

* skip more

* sleep more and fail if not 200

* use e2etest for content/ too

* automatically start server for jest

* does this work?

* feedbacked

* rename things

* getting it to work

* add dev dependency

* install the right version

* don't need to start that

* fix package lock

* update readme about it

* feedbacked
2022-03-18 21:46:07 +00:00
Peter Bengtsson
8362602503 do rendering end-to-end tests with a real server (#26169)
* reinstate

* start server manually

* routing tests too

* skip more

* sleep more and fail if not 200

* use e2etest for content/ too

* feedbacked
2022-03-18 17:06:12 -04:00
Robert Sese
dfe4480189 Trigger on pushes to merge queue prep branches (#26172) 2022-03-14 23:51:33 +00:00
Peter Bengtsson
01baeda3c0 sync serialize sitedata to disk (#25749)
* sync serialize sitedata to disk

* use os.tmpdir

* refactor tests

* debugging

* use log

* debugging

* louder about syntax errors

* warn-before-tests

* louder about disk-caching redirects

* less loud

* only in development again
2022-03-09 20:57:40 -05:00
Peter Bengtsson
22cd55f3e3 cache changelog feed in CI (#25759)
* cache changelog feed in CI

* unbreak unit tests

* feedbacked

Co-authored-by: Robert Sese <rsese@github.com>
2022-03-03 20:32:34 +00:00
Peter Bengtsson
7661dd042c use Node 16.14.x in CI now (#25305) 2022-02-15 01:13:33 +00:00
Mike Surowiec
624581e527 Remove most of Heroku references (#25208)
* remove most of heroku references

* remove more stuff

* update codeowners
2022-02-10 17:36:07 -06:00
Peter Bengtsson
64f9826bdf only deal with docs-early-access in docs-internal (#25180)
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
2022-02-09 15:17:00 +00:00
Peter Bengtsson
2599d72116 conditionally clone docs-early-access by branchname (#24674)
* conditionally clone docs-early-access by branchname

* fix path

* right api

* the correct use of Octokit

* try that

* destructuring total_count

* test early access with fs.existsSync

* debugging

* bad lookup

* better lookup technique

* trying something

* always check it out

* with debugging

* with token

* with path

* better

* go for it

* only on docs-internal

* better name

* formatting

* tidying up

* correct octokit

* feedbacked

* correct hopefully

* final version

* disable test that checks for perfect translation-to-English file parity

* Accidentally committed in the wrong branch.

This reverts commit adee780718ea7414934e2257d17b0c004bd804af.

* match the azure-preview-env-deploy.yml
2022-02-08 17:20:51 +00:00
Peter Bengtsson
ac30f9297c basic tests of the search API (#25069)
* basic tests of the search API

* lfs
2022-02-07 17:11:08 +00:00
James M. Greene
fc25c1a7be Simplify and correct 'npm test' usage in Workflows (#24219) 2022-01-11 21:05:39 +00:00
dependabot[bot]
893f50cd7a Bump actions/setup-node from 2.5.0 to 2.5.1 (#24009)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](04c56d2f95...1f8c6b94b2)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-01-10 09:07:53 -05:00
dependabot[bot]
1d20c5d10f Bump actions/cache from 2.1.6 to 2.1.7 (#24013)
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.6 to 2.1.7.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](c64c572235...937d244753)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2022-01-07 23:42:39 +00:00
James M. Greene
6f2170e825 Remove duplicate CI env vars from Actions workflows (#23921) 2022-01-04 18:29:04 +00:00
James M. Greene
d6405ecb45 Optimize workflow runs with concurrency settings (#23811)
* Add concurrency settings for a bunch of workflows
* Restrict prod deployments to one at a time but disallow interrupting
* Remove redundant pull_request.types specification
2021-12-17 16:00:52 +00:00
Peter Bengtsson
17e33bbb61 don't run unit tests on pushes to main (#23755) 2021-12-16 12:51:30 +00:00
Peter Bengtsson
f68eb74d90 Make a dedicated, fast, workflow just for docs-internal only (#23289)
* Make a dedicated, fast, workflow just for docs-internal only

Part of #1297

* make staging-build-pr only for github/docs

* prune later

* make it louder and clearer about disabling workflows

* does it merge?

* typo

* rename ref

* rename

* early access should be good to go

* far from perfect

* start with that

* gzip

* rearrange

* html_url

* correction of actions/checkout sha

* correction of actions/setup-node sha

* quote

* ooops

* actually deploy

* move @octokit/rest to dependencies

* await-sleep hack

* reinstall npm

* typo

* CONTEXT_NAME

* deployments:write permission

* pull-requests:read permission

* actions:read and statuses:write permissions

* private repo mention exception

* it's called github.run_id

* Apply suggestions from code review

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* make CONTEXT_NAME optional (if it works)

* comment out CONTEXT_NAME

* simplifying

* going to run on on.pull_request instead

* remove comment

* only the 2-phase staging deploy on github/docs

* better if statement on label check

* refactor of staging-deploy script

* switch to npm install to get the deDependencies back

* using --only=dev

* updating comments

* event_name

* not on pushes to main

* add staging-commit-status-success

* testing testing

* fix linting error

* Remove other docs-internal references from staging-deploy-pr.yml

* Cleaning up new staging-commit-status-success script and usage

* Remove unnecessary environment refs

* Remove unnecessary fallback

Since the only event trigger is pull_request now instead of also push

* Remove unnecessary env vars from workflow

* docs-internal or docs but not both

* Don't provide unnecessary environment refs

* remove now moot exception

* setting it to pull_request_target

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-12-14 08:57:54 -05:00
James M. Greene
3d88cae50b Add permission matrices to all Actions workflows (#23563)
* Add permission matrices to all Actions workflows

Also cleanup a few token references

* Add actions:read permissions for CodeQL

* Add prs:read permissions for unit test workflow
2021-12-14 04:37:36 +00:00
Peter Bengtsson
7d17ce2262 cache .next/cache between unit tests (#23415)
Part of #1246
2021-12-06 18:46:06 +00:00
Peter Bengtsson
26014646dd Massive DIFF_FILES crashes bash in repo-sync (#23326)
* Massive DIFF_FILES crashes bash in repo-sync

Part of #1304

* gst

* make exception
2021-12-02 18:57:38 +00:00
dependabot[bot]
038e81826b Bump actions/checkout from 2.3.5 to 2.4.0 (#23297)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.5 to 2.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](1e204e9a92...ec3a7ce113)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2021-12-02 14:15:21 +00:00
dependabot[bot]
95edf7be45 Bump actions/setup-node from 2.4.1 to 2.5.0 (#23293)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.4.1 to 2.5.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](270253e841...04c56d2f95)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2021-12-02 13:25:56 +00:00
Peter Bengtsson
480159e778 only lint the files that changed (#22924)
* only lint the files that changed

* allowed action

* do nothing

* debug more

* less debugging

* debug

* debug

* debug

* using patterns

* testing something

* testing something (2)

* lemme try something

* lemme try something

* one more attempt

* testing

* tidying up

* sample changes

* add debugging

* some code comments

* fine but sample changes

* update allowed actions

* final cleaning before opening PR for review

* tiny update

* remove commented out code

* feedbacked
2021-11-18 03:03:47 +00:00
Peter Bengtsson
22f21db4a3 use Node 16.13.x for CI workflows (#22758)
Part of #1203
2021-11-11 01:23:13 +00:00
Marcelo Jacobus
ed9e3d79cb Add test and script to ensure 1:1 parity of liquid tags between source and translation (#22472)
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2021-11-04 10:59:17 -03:00
dependabot[bot]
cd74b07da1 Bump actions/checkout from 2.3.4 to 2.3.5 (#22264)
* Bump actions/checkout from 2.3.4 to 2.3.5

Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.4 to 2.3.5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](5a4ac9002d...1e204e9a92)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* test

* removing test, works

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Grace Park <gracepark@github.com>
2021-10-21 00:19:35 +00:00
Peter Bengtsson
9964a6619c separate 'npm test' from 'npm lint' (#22191)
* separate 'npm test' from 'npm lint'

* remove delberately eslint violation (but keep prettier violation)

* undo prettier violation

* tighten up us of our scripts for testing and lint
2021-10-18 19:58:56 +00:00
dependabot[bot]
5201ca8813 Bump actions/setup-node from 2.2.0 to 2.4.1 (#22109)
* Bump actions/setup-node from 2.2.0 to 2.4.1

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.2.0 to 2.4.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](38d90ce44d...270253e841)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* allow it moar

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
2021-10-18 13:33:34 -04:00
Mike Surowiec
3c0e4e03b8 fix: pin workflow node-version to 16.8.x (#21361) 2021-09-08 11:08:53 -04:00
James M. Greene
265f074565 Update actions-linter to latest for concurrency key support (#20441)
* Update version of actions-linter to support 'concurrency' key
* Update .github/workflows/workflow-lint.yml
* Revert casing of 'fromJson' to 'fromJSON'
2021-07-21 15:40:42 +00:00
Kevin Heis
42e785b0a8 Migrate CommonJS to ESM (#20301)
* First run of script

* Get the app running --- ish

* Get NextJS working

* Remove `node:`

* Get more tests passing in unit directory

* Update FailBot test to use nock

* Update test.yml

* Update Dockerfile

* tests/content fixes

* Update page.js

* Update build-changelog.js

* updating tests/routing

* Update orphan-tests.js

* updating tests/rendering

* Update .eslintrc.js

* Update .eslintrc.js

* Install jest/globals

* "linting" tests

* staging update to server.mjs

* Change '.github/allowed-actions.js' to a ESM export

* Lint

* Fixes for the main package.json

* Move Jest to be last in the npm test command so we can pass args

* Just use 'npm run lint' in the npm test command

* update algolia label script

* update openapi script

* update require on openapi

* Update enterprise-algolia-label.js

* forgot JSON.parse

* Update lunr-search-index.js

* Always explicitly include process.cwd() for JSON file reads pathed from project root

* update graphql/update-files.js script

* Update other npm scripts using jest to pass ESM NODE_OPTIONS

* Update check-for-enterprise-issues-by-label.js for ESM

* Update create-enterprise-issue.js for ESM

* Import jest global for browser tests

* Convert 'script/deploy' to ESM

Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: James M. Greene <jamesmgreene@github.com>
2021-07-14 13:49:18 -07:00