Commit Graph

43 Commits (750e9fce08c0715048541390317e436769246ced)

Author SHA1 Message Date
renovate[bot] 770983a02b
chore(deps): update actions/upload-artifact action to v3 (#45491)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-21 07:05:26 -07:00
renovate[bot] d96ab11ffd
chore(deps): update actions/setup-node action to v3 (#45329)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-03 13:42:39 +05:30
renovate[bot] 7673ce9111
chore(deps): update actions/download-artifact action to v3 (#45325)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-03 13:41:11 +05:30
renovate[bot] 15232456b1
chore(deps): update actions/checkout action to v3 (#45324)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-03 06:29:31 +00:00
Oliver Eyton-Williams 7216ca55cc
refactor: organise TypeScript config and migrate helpers (#44747)
* feat: allow more 1000 steps to be created at once

* refactor: start migrating to typescript

* refactor: delete-step to ts

* refactor: migrated some helpers

* refactor: migrate create-empty-steps

* refactor: migrate create-step-between

* refactor: finish migrating to TS

* refactor: migrate tests

* fix: ensure mock.restore is done after each test

* fix: prevent double-tscing

* fix: repair the tests

* chore: use ts-node for scripts

We don't need the performance boost of incremental compilation and
ts-node is easier to work with

* refactor: consolidate tsconfigs

* refactor: replace gulp

* fix: use ts-node for build-curriculum

* fix: allow ts compilation of config

* feat: create and use create:config script

* fix: add /config to eslint projects

* fix: remove gulp script
2022-01-25 11:34:16 +01:00
Oliver Eyton-Williams 48f88428e8
test: login more directly (#44467)
* test: login more directly

* test: separate login from other visits

In a single test, Cypress can only visit within a single domain, hence
the separation.

* chore: fail slowly for all strategies

* test: user certified user for showing cert

* test: fix and cleanup certifications
2021-12-11 14:34:16 +05:30
Mrugesh Mohapatra c9faf384b0
chore: exclude actions from changes to docs (#44412)
* chore: exclude actions from changes to docs

* fix(actions): Node.js flows needed for merge :(

* chore: apply suggestions from code review

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* chore: apply suggestions from code review

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-12-08 19:12:07 +05:30
Mrugesh Mohapatra 4574e4e81d chore: update all workflows to Node.js v16 2021-11-03 15:06:19 +05:30
Mrugesh Mohapatra a695f744e2
chore(actions): update mongodb in cypress workflow (#44098) 2021-11-02 22:23:06 +05:30
Mrugesh Mohapatra f84d6078fd
chore(actions): use Ubuntu-20.04 in all workflows (#44095) 2021-11-02 17:19:50 +05:30
Oliver Eyton-Williams c8d7f0a782
feat(tools): remove eslint-plugin-prettier for prettier (#42438)
* feat: remove eslint-plugin-prettier for prettier

This removes the annoying lint warnings when all that needs to change is
formatting

* fix: use .js lint-staged config to ignore properly

* fix: lint everything if a lot of files are changed

It's faster than making lots of individual linter calls

* chore: apply prettier

* fix: ignore code in curriculum-file-structure
2021-10-06 21:02:21 +05:30
Oliver Eyton-Williams 45a2564dcf
test: build client once and use in Cypress jobs (#43301) 2021-08-25 09:18:31 -07:00
Oliver Eyton-Williams d161998acc
test: check that JS projects can be submitted. (#43222)
* test: check that JS projects can be submitted.

* refactor: remove stale workflow comments

* refactor: remove redundant build

* chore: update Cypress version in CI

* test: create separate electron-only workflow

* test: put data-cy on correct button

* test: drop mailhog from electron CI

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* refactor: update differences comment

* test: separate toggling from logging in

* test: check solutions can be viewed on cert

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-08-24 20:26:48 +02:00
Shaun Hamilton c2a11ad00d
feat: add 'back/front end' in curriculum (#42596)
* chore: rename APIs and Microservices to include "Backend" (#42515)

* fix typo

* fix typo

* undo change

* Corrected grammar mistake

Corrected a grammar mistake by removing a comma.

* change APIs and Microservices cert title

* update title

* Change APIs and Microservices certi title

* Update translations.json

* update title

* feat(curriculum): rename apis and microservices cert

* rename folder structure

* rename certificate

* rename learn Markdown

* apis-and-microservices -> back-end-development-and-apis

* update backend meta

* update i18n langs and cypress test

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* fix: add development to front-end libraries (#42512)

* fix: added-the-word-Development-to-front-end-libraries

* fix/added-the-word-Development-to-front-end-libraries

* fix/added-word-development-to-front-end-libraries-in-other-related-files

* fix/added-the-word-Development-to-front-end-and-all-related-files

* fix/removed-typos-from-last-commit-in-index.md

* fix/reverted-changes-that-i-made-to-dependecies

* fix/removed xvfg

* fix/reverted changes that i made to package.json

* remove unwanted changes

* front-end-development-libraries changes

* rename backend certSlug and README

* update i18n folder names and keys

* test: add legacy path redirect tests

This uses serve.json from the client-config repo, since we currently use
that in production

* fix: create public dir before moving serve.json

* fix: add missing script

* refactor: collect redirect tests

* test: convert to cy.location for stricter tests

* rename certificate folder to 00-certificates

* change crowdin config to recognise new certificates location

* allow translations to be used

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>

* add forwards slashes to path redirects

* fix cypress path tests again

* plese cypress

* fix: test different challenge

Okay so I literally have no idea why this one particular challenge
fails in Cypress Firefox ONLY. Tom and I paired and spun a full build
instance and confirmed in Firefox the page loads and redirects as
expected. Changing to another bootstrap challenge passes Cypress firefox
locally. Absolutely boggled by this.

AAAAAAAAAAAAAAA

* fix: separate the test

Okay apparently the test does not work unless we separate it into
a different `it` statement.

>:( >:( >:( >:(

Co-authored-by: Sujal Gupta <55016909+heysujal@users.noreply.github.com>
Co-authored-by: Noor Fakhry <65724923+NoorFakhry@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-08-13 21:57:13 -05:00
Mrugesh Mohapatra 0a0caf18ae
fix(actions): use inbuilt cache with setup-node (#42730) 2021-07-03 14:09:25 +01:00
Mrugesh Mohapatra 3130265991
revert: (test, e2e) test suit for cypress (#42488)
This reverts commit 22b45761a7.
2021-06-14 23:44:43 +05:30
Sem Bauke 22b45761a7
feat(test, e2e) test suit for cypress (#42138)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-06-14 22:07:52 +05:30
Oliver Eyton-Williams de40fe86e9
test(e2e): more settings tests (#42046) 2021-05-07 07:30:38 -07:00
Mrugesh Mohapatra ccdea0c727
fix(cypress): remove parallel runs (#42011)
* fix(cypress): remove parallel runs

* chore: apply review comments

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>

* chore: apply review comments

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-05-06 10:03:06 +05:30
Sem Bauke 1f9166922c
feat(Cypress): enabling parallelization Cypress (#41782)
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2021-04-09 06:14:45 +02:00
Mrugesh Mohapatra ca6cb07838
chore(ci): deprecate node 12 (#41585) 2021-03-26 17:07:02 +05:30
Mrugesh Mohapatra b0bfc00f21 fix(actions): update workflow matrices & docs
This commit intentionally adds a matrix to keep supporting Node.js 12
while we evaluate it
2021-03-11 12:19:42 +05:30
Mrugesh Mohapatra b5f4754e2a
fix: re-revert the API decoupling (#41263)
* fix(api): decouple api from curriculum

This reverts commit 8f0e441644 and
introduces the implementations from #40703.

* fix(gitpod): add curriculum build to GitPod

This reverts commit 706d70f58d and
introduces implementations from #41234.

* docs: update DevOps manual for api change (#41259)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-02-25 12:02:35 -08:00
Mrugesh Mohapatra 8f0e441644 revert(api): decouple api from curriculum
This reverts commit c077ffe4b9
via PR #40703
2021-02-25 03:40:09 +05:30
Oliver Eyton-Williams c077ffe4b9
feat(api): decouple api from curriculum (#40703) 2021-02-22 12:23:59 +05:30
Twaha Rahman 45fe3d8814
fix(cypress): Re-introduce Firefox in Cypress CI (#40440)
* Revert "chore: drop firefox for intermittent fails"

This reverts commit 704beb2260.

* Increase timeout for Cypress learn log output test
2020-12-14 18:50:48 +01:00
Twaha Rahman bf0c49f9b4
chore(cypress): migrate to Cypress v6 (#40396)
* Update Cypress version from 5.3.0 to 6.0.0

* Replace `not.be.visible` with `not.exist`

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-12-07 11:02:52 +01:00
Oliver Eyton-Williams aebe53312c
chore: Cypress action v1 -> v2 (#40253) 2020-11-17 14:22:15 +03:00
Oliver Eyton-Williams d94a240cf4
fix(cypress): update setting of env vars (#39962) 2020-10-13 17:22:06 +05:30
Mrugesh Mohapatra 704beb2260 chore: drop firefox for intermittent fails 2020-09-25 00:37:40 +05:30
Mrugesh Mohapatra 3ac415154c chore(actions): cache dependencies 2020-09-25 00:37:40 +05:30
Twaha Rahman 40a190318b
fix(tests): run e2e tests on Chrome and Firefox (#39568)
* Add scripts for Cypress to run on other browsers

* Run Cypress on different browsers in workflow

* Install Brave and run it in Cypress

* Run Cypress on only CHrome and FIrefox

* Revert Cypress plugin
2020-09-14 12:37:00 +05:30
Mrugesh Mohapatra 1603e5beba
chore: remove travis integration (#39390) 2020-08-11 02:07:19 +05:30
Mrugesh Mohapatra 6e16a50329 fix(tools): fix syntax errors and test special branch 2020-08-09 01:44:36 +05:30
Mrugesh Mohapatra e242852bef fix(tools): misc. updates to action workflows 2020-08-09 00:58:13 +05:30
Oliver Eyton-Williams 15d0737cff chore: bump root 2020-08-04 03:50:20 +05:30
Oliver Eyton-Williams 5337932fd8
fix: lock Ubuntu version for Cypress (#39322) 2020-07-27 18:06:58 +05:30
Mrugesh Mohapatra 0fd8b7a6db
feat: update cypress version and config (#38892) 2020-06-10 01:47:13 +05:30
Oliver Eyton-Williams 65416fd351
test: record only if key is present (#38748) 2020-05-07 15:26:18 +05:30
Mrugesh Mohapatra 1dabaf8405
feat: enable github integration (#38678)
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-04-30 15:03:00 +05:30
Mrugesh Mohapatra ba053b7abe
chore(e2e): update cypress config (#38676) 2020-04-29 16:47:06 +05:30
Mrugesh Mohapatra 6a1bb78142
fix/limit-branches 2020-04-29 16:20:14 +05:30
Oliver Eyton-Williams 54c6190361 feat: add GitHub action for e2e testing 2020-04-23 01:42:24 +05:30