1
0
mirror of synced 2025-12-31 06:02:42 -05:00
Commit Graph

51 Commits

Author SHA1 Message Date
Rachael Sewell
5f40f9341d Switch search backend from Lunr to Elasticsearch (#31257)
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
2022-10-04 19:04:47 +00:00
Peter Bengtsson
0df47e183b run browser tests on a beefier runner (#30055) 2022-08-18 17:35:12 +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
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
dde4ae91f9 don't bother caching the lib/redirects/.redirects-cache_en_ja.json in browser tests (#25697) 2022-02-28 22:26:12 +00:00
Peter Bengtsson
7661dd042c use Node 16.14.x in CI now (#25305) 2022-02-15 01:13:33 +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
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
a736b53cec Only run browser tests on pull request (#23704)
* only run browser tests on pull_request

* package.json also

* helps if I edit the right file
2021-12-15 17:21:51 +00:00
James M. Greene
526b5bd651 Add nextjs caching into all workflows with builds (#23654)
* Add nextjs caching into all workflows with builds

* Reposition the nextjs cache step for test-windows.yml

* Fix cache and run build for browser-test.yml

* Update .github/workflows/browser-test.yml
2021-12-14 23:21:06 +00: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
ca39429648 Browser test in enja only and cache redirects cache en jajson file (#23502)
* cache the .next/cache directory for faster builds

* browser test in en,ja only and cache .redirects-cache_en_ja.json file

* correction
2021-12-08 19:47:04 +00:00
Peter Bengtsson
b4383a39b1 cache the .next/cache directory for faster builds (#23498) 2021-12-08 14:28:00 -05: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
038fc886ba only run browser tests when JS is changing (#23080)
* only run browser tests when JS is changing

Part of #1246

* ugh typo

* try this

* tidying up
2021-11-30 22:09:58 +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
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
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
Grace Park
2dbea3737a Removing algolia (#20633) 2021-08-05 13:10:51 -04:00
James M. Greene
149864b7ba Use the easy npm caching now built into actions/setup-node (#20316) 2021-07-13 10:42:07 -05:00
ajs256
c9d682b366 Fix typo in action step name 2021-06-16 11:44:20 -07:00
Mike Surowiec
37f73f0bb3 Heroku dev deps (#19431)
* fix: req.csrfToken doesn't always exist (e.g. 500 page)

* feat: update dockerfile and add nextjs to build

* fix: run linter

* move @babel deps -> dev deps

* move webpack looking things from deps -> dev deps

* move pa11y-ci to optional dep

* explicitly include optional deps for pa11y

* allow heroku dev deps to be installed

* fix: update postcss module

* fix: update dockerfile build

* tmp: disable renderReact

* see if another deploy is slower/faster

* move a few more packages to devDeps

* upgrade to package-lock v2

* use dayjs instead of date-fns

* move cross-env to devDeps

* remove unused 'del' package

* commit husky precommit hooks

* add hrtime to clone-for-build.js

* Revert "add hrtime to clone-for-build.js"

This reverts commit 70ee647bacce833f4ed2f621f62c63c1d85e5413.

* update babel/eslint

* fix: remove unused plugin

* try a .slugignore

* fix: heroku-postbuild to use npm run build

* fix: i cannot spell dereferenced

* add .next/cache to heroku cacheDirectories

* test cached build

* remove aws-sdk, see what breaks

* move jest-puppeteer to optional deps

* fix: update browser-test.yml to use newer node version

* move jimp to optional dependencies

* move puppeteer to optional dependencies

* fix: ci optional include

* fix: bad copy pasta

* remove previous react experiment

* update tests/README.md with note about optional deps

* bump node test version back to 14

* convert package-lock back to v1

* fix: use node 15.x to leverage npm optional deps

* fix: optional dep install

* test: see what happens with heroku/nodejs-typescript buildpack

* back to heroku/nodejs buildpack

* move jest to optional

* revert jest move

* remove .slugignore

* cleanup dockerfile, move xlsx-population to optional, add comment about optional deps

* Update Dockerfile

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

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-05-24 15:40:50 -07:00
Mike Surowiec
488dd4d202 run browser-test.yml like pa11y.yml 2021-05-20 14:09:14 -07:00
Mike Surowiec
c4166202a1 feat: upgrade to node v16, package-lock.json v2, remove aws-sdk 2021-05-20 13:32:19 -07:00
Chiedo John
c6a0f4dc8d No more skipping workflows (#18674)
Co-authored-by: chiedo <chiedo@users.noreply.github.com>
2021-04-09 11:31:54 -04:00
Kevin Heis
62a8891954 Add descriptions to our actions workflows (#18019)
Co-authored-by: Sarah Edwards <skedwards88@github.com>
2021-03-23 21:31:28 +00:00
Rachael Sewell
f4c3a35602 temporary puppeteer container changes to revert Chrome browser(#18131) 2021-03-05 16:43:58 -08:00
Chiedo John
c01b7fa33f Remove Browser Tests until it works again (#18088)
* Remove Browser Test until it works again

* Readd workflow and just disable the common triggers

Co-authored-by: chiedo <chiedo@users.noreply.github.com>
Co-authored-by: James M. Greene <jamesmgreene@github.com>
2021-03-04 15:56:58 +00:00
James M. Greene
3e16e7063a Add step timeouts to pupper-container steps (#18071) 2021-03-03 15:17:39 -06:00
Jason Etcovitch
6e0c2319b4 Set engines.node to 14+ (#17777)
* Set engines.node

* Add setup-node to browser-test workflow

* Updoot ianwalter/puppeteer-container
2021-02-11 15:40:08 +00:00
James M. Greene
4ab23615e0 Execute browser tests for pushes to main and all PRs (#17796)
...instead of just pushes to any branch.

Fixes https://github.com/github/docs-internal/issues/17068
2021-02-10 21:09:47 +00:00
Chiedo
5e6c30a4a8 Revert "chore: flatten ifs for fkirc/skip-duplicate-actions"
This reverts commit d9d17364e3.
2020-11-16 09:07:00 -05:00
Nick Schonning
d9d17364e3 chore: flatten ifs for fkirc/skip-duplicate-actions 2020-11-06 15:39:03 -05:00
Nick Schonning
c058d4aad8 chore: Update actions/checkout to v2.3.4 2020-11-05 18:05:39 -05:00
Chiedo
27b2578b44 Upgrade Skip Duplicate Actions
The previous version often returned HTTP Errors and failed unexpectedly.

This version is more fault tolerant.

Details: https://github.com/fkirc/skip-duplicate-actions/issues/45
2020-10-15 17:54:23 -04:00
Octomerger Bot
a7d2a3fa6f Branch was updated using the 'autoupdate branch' Actions workflow. 2020-10-15 12:18:33 -07:00
Chiedo
d6dcc4218a Default to tests running if the skip action errors out 2020-10-15 14:14:33 -04:00
Octomerger Bot
ed990c105b Branch was updated using the 'autoupdate branch' Actions workflow. 2020-10-15 11:12:25 -07:00
Chiedo
b2d465035e Continue skip check on error 2020-10-15 12:49:16 -04:00
Chiedo John
68ca82f227 Move from paths-ignore to paths to be less confusing (#16040)
* Move from paths-ignore to paths to be less confusing

* Include feature flags

* Make sure test and browser workflows run fully when changed

Co-authored-by: Chiedo <chiedo@users.noreply.github.com>
2020-10-15 09:48:40 -04:00
Chiedo
8131d67969 Convert more action versions to shas 2020-10-15 08:55:22 -04:00
Chiedo
bdbe7cc9e0 Update some of the actions to Shas 2020-10-15 08:45:27 -04:00
Chiedo John
c76bf47ea5 Attempt to reduce uneeded test runs (#16015)
* Reduce unneeded test runs

- Attempt to make the skip logic work w/ required checks
- Move pa11y to cron schedule
- Make browser test conditional

Co-authored-by: Zeke Sikelianos <zeke@sikelianos.com>
Co-authored-by: Jason Etcovitch <jasonetco@github.com>
2020-10-14 12:57:45 -04:00
Chiedo John
e097e8835d Support manual workflow runs for tests and browser tests (#16031)
Co-authored-by: Chiedo <chiedo@users.noreply.github.com>
2020-10-14 10:43:31 -04:00