1
0
mirror of synced 2026-01-04 09:06:46 -05:00
Commit Graph

60 Commits

Author SHA1 Message Date
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
James M. Greene
149864b7ba Use the easy npm caching now built into actions/setup-node (#20316) 2021-07-13 10:42:07 -05:00
James M. Greene
7662b43a07 Update casing of 'fromJSON' to 'fromJson' in our workflow files (#19933) 2021-06-15 21:37:46 +00:00
Mike Surowiec
c4166202a1 feat: upgrade to node v16, package-lock.json v2, remove aws-sdk 2021-05-20 13:32:19 -07:00
Kevin Heis
cc0d0ce4b4 Increase actions tests memory (#19179) 2021-05-06 11:35:49 -07:00
Sarah Schneider
1d79e16d76 update test workflows 2021-04-28 14:40:50 -04: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
James M. Greene
0eec258c01 Fix git branch inconsistencies for Actions (#18309)
* Update workflows to pass appropriate branch name for pull_request events

* Update Docker building workflow to check appropriate branch name for pull_request events

* Update Windows testing workflow for consistency with non-Windows testing workflow

* Reorder if conditional check

* Update workflow comment
2021-03-18 14:31:31 -05:00
James M. Greene
0d02e1c142 Run the normal JS tests on CrowdIn PRs and remove the alternative workflow (#17794) 2021-02-11 01:28:07 +00:00
James M. Greene
a469193704 Test workflow and jest configuration cleaning (#17759) 2021-02-09 10:52:28 -06:00
Chiedo John
852a8cde15 Use self-hosted runners for docs-internal (#17442)
Use self hosted runners for docs-internal

Co-authored-by: chiedo <chiedo@users.noreply.github.com>
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-01-25 08:41:53 -05:00
Sarah Schneider
295e5dc1f0 upgrade to setup-node v2 2021-01-22 10:54:20 -05:00
Sarah Schneider
b19b50c347 ra npx prettier -w .github/workflows/test.yml 2021-01-21 16:58:07 -05:00
Sarah Schneider
76a3706214 link check should only run via separate workflow not test.yml 2021-01-21 16:50:26 -05:00
Sarah Schneider
1258092a41 Merge branch 'main' of github.com:github/docs-internal into hidden-docs-alt 2020-12-02 14:22:10 -05:00
Sarah Schneider
6d82e46580 lint 2020-12-02 12:30:45 -05:00
Robert Mosolgo
fc54b4d43c Fix lint errors 2020-11-25 16:30:37 -05:00
Robert Mosolgo
aeedfac37e Add graphql tests to CI, move snapshots to fixures, use mockdate 2020-11-25 11:12:13 -05:00
James M. Greene
4962f91a13 Fix test workflow file 2020-11-17 14:50:43 -06:00
James M. Greene
909db6fcf4 Update EA cloning script to rely on the current git branch 2020-11-17 14:13:14 -06:00
Nick Schonning
92740f68d7 chore: Add Prettier for Yaml formatting
Related to #128
- Prettier to fix indenting/quoting across files
- Manually adjust list styles to "-" style
- Ignore all translated files from automated formatting
- Drop redundant CI env variable
2020-11-16 16:12:49 -05:00
Kevin Heis
dd02bfa007 Merge main 2020-11-16 10:07:53 -08:00
Chiedo
5e6c30a4a8 Revert "chore: flatten ifs for fkirc/skip-duplicate-actions"
This reverts commit d9d17364e3.
2020-11-16 09:07:00 -05:00
James M. Greene
dac5bc7867 Don't re-run build for Actions in the internal repo 2020-11-10 16:01:18 -06:00
James M. Greene
e1f3f6457e Merge branch 'main' into hidden-docs-alt 2020-11-09 13:09:52 -06:00
James M. Greene
f410fd175c Mostly reverting github/docs-internal#15313 2020-11-09 13:07:04 -06:00
Nick Schonning
71b6ee7641 chore: Upgrade actions/cache to v2.1.3 2020-11-09 10:19:53 -05:00
Nick Schonning
d9d17364e3 chore: flatten ifs for fkirc/skip-duplicate-actions 2020-11-06 15:39:03 -05:00
Nick Schonning
bf478c15dd chore: Set timeout of 60 minutes for test job 2020-11-06 11:55:06 -05:00
Nick Schonning
c058d4aad8 chore: Update actions/checkout to v2.3.4 2020-11-05 18:05:39 -05:00
James M. Greene
2be96edf73 Try using actions/checkout's persist-credentials input instead of manually changing the local git config 2020-11-04 11:19:46 -06:00
Nick Schonning
4fb87ade22 chore: Pull JS Linting to separate Action
Only trigger if JS, package, or Action file is changed
2020-11-04 10:46:47 -05:00
Sarah Schneider
0cf94f26b7 Merge branch 'main' of https://github.com/github/docs-internal into hidden-docs-alt 2020-11-03 17:09:22 -05:00
Chiedo John
c116efe725 Crowdin translations (translation-batch-1604415979) (#16312)
* New Crowdin translations by Github Action

* Revert broken translated files to English

* Revert broken translations

* Revert broken translations

* Revert more broket translations

* Revert broken translation

* Increase Node memory limit for running Jest

* Allow Node to use more memory for Jest

* Increase Node memory limit for running Jest

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Chiedo <chiedo@users.noreply.github.com>
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2020-11-03 16:15:55 -05:00
James M. Greene
e913c26006 Try ONLY clearing out the extraHeader value rather than overwriting it 2020-11-03 12:11:23 -06:00
James M. Greene
da7afd4e55 Manually override GitHub Actions extraHeader 2020-11-03 12:02:37 -06:00
James M. Greene
7514a54785 Remove EA cloning from lint -- no JS files in there to lint 2020-11-03 10:56:46 -06:00
James M. Greene
3008ad1b70 Update all heroku-prebuild refs to heroku-postbuild 2020-11-03 10:30:11 -06:00
James M. Greene
c6980ab666 Fix the other workflow syntax error I missed 2020-11-03 10:24:08 -06:00
James M. Greene
850c11aca7 Fix workflow syntax error 2020-11-03 10:19:42 -06:00
Sarah Schneider
67466e8a43 duplicate change between lint and test steps 2020-11-02 14:23:46 -05:00
Sarah Schneider
24a281a673 run clone script from docs-internal only 2020-10-26 09:52:35 -04:00
Sarah Schneider
e94e4b7780 clone early-access repo during testing 2020-10-23 14:00:42 -04: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 John
d96352d13a Make sure transalations trigger node tests (#16064)
Co-authored-by: Chiedo <chiedo@users.noreply.github.com>
2020-10-15 13:58:54 -04:00