Commit Graph

287 Commits

Author SHA1 Message Date
renovate[bot]
103cdb3405 chore(deps): update github/codeql-action digest to 7cce9bb 2022-09-03 13:18:20 +00:00
renovate[bot]
76a56c39d1 chore(deps): update github/codeql-action digest to d5cec09 2022-08-27 05:14:39 +00:00
renovate[bot]
94da1daa1d chore(deps): update actions/github-script digest to c713e51 (#47391)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-26 18:35:39 -07:00
renovate[bot]
4bdbd908c3 chore(deps): pin dependencies (#47336)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-22 17:53:52 +05:30
Naomi Carrigan
afba54eafd chore: enable german crowdin downloads (#47322) 2022-08-19 08:59:27 +02:00
renovate[bot]
57e7e1bc9e chore(deps): update actions/github-script digest to d50f485 2022-08-13 02:47:38 +00:00
Ahmad Abdolsaheb
29e4a18a56 feat(tools): donation tests (#46633)
* feat: add stripe donate page test for non donors

* fix: revert changes to see if ev is passed correctly

* feat: download artifacts

* fix: add quotations for spec args with global patterns

* fix: remove firefox from cypress donation tests

* fix: trigger action on main push

* Apply suggestions from code review

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

* feat: remove matrix and simplify

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-08-08 08:43:23 -07:00
renovate[bot]
b9d5c28272 chore(deps): update github/codeql-action digest to af35bd3 2022-08-06 10:23:10 +00:00
renovate[bot]
caeb9d35a3 chore(deps): update actions/setup-python digest to b55428b 2022-08-06 04:38:16 +00:00
Oliver Eyton-Williams
7818ba55b5 fix(validation): create .env before config (#47143) 2022-08-03 09:54:52 -07:00
Oliver Eyton-Williams
853be8d712 fix: create config before audit (#47142) 2022-08-03 15:06:24 +00:00
Oliver Eyton-Williams
a5188ec78b fix: create config before auditing i18n challenges (#47137) 2022-08-03 07:03:59 -07:00
Naomi Carrigan
88a9b8842d feat(tools): validate curriculum PRs (#47116)
* feat(tools): validate curriculum PRs

* fix: syntax issues

* fix: catch failure correctly

* fix: use contains because colon was being weird??
2022-08-02 17:16:23 +05:30
renovate[bot]
78abf47e2e chore(deps): update github/codeql-action digest to 5207709 2022-07-30 02:46:06 +00:00
Mrugesh Mohapatra
1177094245 chore: naming conventions 2022-07-21 20:45:32 +05:30
Naomi Carrigan
41fb69417c feat(tools): audit i18n challenges (#46968)
* feat(tools): audit i18n challenges


Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-07-21 20:43:47 +05:30
renovate[bot]
e55b3a3476 chore(deps): update github/codeql-action digest to f7b6c00 (#46905)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2022-07-15 19:15:49 +05:30
renovate[bot]
db626a4906 chore(deps): update actions/setup-java digest to 2c7a487 (#46902)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-15 19:13:40 +05:30
renovate[bot]
114e93e894 chore(deps): update actions/setup-node digest to 2fddd88 (#46903)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2022-07-15 19:13:22 +05:30
renovate[bot]
47f04b3335 chore(deps): update actions/setup-python digest to c4e89fa (#46904)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-15 19:12:29 +05:30
Naomi Carrigan
8b8afb5e01 temp: rollback firefox to 101 (#46878)
* temp: pin firefox to 101

* temp: use sudo
2022-07-12 17:26:35 -05:00
Naomi Carrigan
8314e7c69b chore: update stray chat links (#46778) 2022-07-06 18:19:37 +00:00
Mrugesh Mohapatra
c505a02165 fix(actions): remove the welcome action (#46766) 2022-07-05 23:17:37 +05:30
renovate[bot]
70b8d59ce5 chore(deps): update github/codeql-action digest to e41f8ba (#46737)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-02 11:40:44 +05:30
renovate[bot]
da04ebdc20 chore(deps): update github/codeql-action digest to 714ec5a (#46654)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-27 12:23:02 +05:30
Naomi Carrigan
fd62be8eb8 fix: workflow again (#46676)
* feat(tools): exclude known bot accounts

* feat(tools): pass in camperbot's token
2022-06-26 21:04:06 +02:00
renovate[bot]
600d37acaa chore(deps): update actions/setup-java digest to 16cca54 (#46653)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-26 22:45:38 +05:30
renovate[bot]
0b7848dab4 chore(deps): update actions/setup-python action to v4 (#46626)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-23 21:02:32 +05:30
Naomi Carrigan
e2e313bfc8 fix(tools): welcomer workflow (#46610)
* fix(tools): welcomer workflow

* fix: revert blankspace changes
2022-06-22 13:37:03 +02:00
renovate[bot]
8a72ac8fdf chore(deps): pin actions/github-script action to 7a5c598 (#46546)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-18 10:18:26 +05:30
Mrugesh Mohapatra
c72aa66056 fix: invalid template syntax (#46535) 2022-06-17 13:49:51 +05:30
Naomi Carrigan
45c7ba5333 feat: new contributor welcome (#46529) 2022-06-16 14:38:50 -07:00
Mrugesh Mohapatra
011a6772ae fix(actions): delete welcome workflow (#46528) 2022-06-16 23:17:53 +03:00
Mikayil
6450d11001 fix(actions): typo in workflow title (#46512)
Typo (translions) in workflow title #46500 

fixed typo "translions" in workflow title to "translations"
2022-06-15 18:31:16 +02:00
Mrugesh Mohapatra
fdd89069c4 feat: add workflow for new contributors (#46479) 2022-06-13 21:18:59 +05:30
Mrugesh Mohapatra
bbf21fec68 fix(actions): drop npm caching (#46480) 2022-06-13 17:57:21 +05:30
Mrugesh Mohapatra
0d88cb4b2d chore: rename actions for consistency 2022-06-13 15:12:53 +05:30
renovate[bot]
fecbf5fed0 chore(deps): update actions/setup-node digest to eeb10cf (#46449)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-12 01:14:55 +05:30
renovate[bot]
9623cd7b46 chore(deps): update github/codeql-action digest to a6611b8 (#46317)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-04 11:56:51 +05:30
Oliver Eyton-Williams
00998b5aa9 test: reduce flake (#46235)
* test: increase timeouts for slow operations

* test: ignore ChunkLoadErrors again

* test: clean up commands

* Revert "fix(cypress): disable electron due to timeouts (#46231)"

This reverts commit 2b884d9dd9.

* test: various minor refactors
2022-05-31 00:27:32 +05:30
Mrugesh Mohapatra
2b884d9dd9 fix(cypress): disable electron due to timeouts (#46231) 2022-05-30 18:06:18 +01:00
Oliver Eyton-Williams
1fb1a090e4 test: allow CI to install current Cypress version (#46172) 2022-05-27 11:24:48 +02:00
renovate[bot]
385816436f fix(deps): pin dependencies (#46128)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-24 12:57:08 +05:30
Mrugesh Mohapatra
359b823247 chore: drop dependency-review action (#46121) 2022-05-23 21:20:44 +05:30
Mrugesh Mohapatra
2b223704f6 fix(github): update issue templates (#46073) 2022-05-19 21:34:03 +05:30
Niraj Nandish
0f49664db2 fix(ci): update workspaces to pass NodeJS CI (#45980) 2022-05-15 20:14:25 +05:30
Naveen
2d05f98430 feat(.github): add dependency review action (#45879)
* chore(deps): Included dependency review

> Dependency Review GitHub Action in your repository to enforce dependency reviews on your pull requests.
> The action scans for vulnerable versions of dependencies introduced by package version changes in pull requests,
> and warns you about the associated security vulnerabilities.
> This gives you better visibility of what's changing in a pull request,
> and helps prevent vulnerabilities being added to your repository.

https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement

* Update .github/workflows/dependency-review.yml

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2022-05-10 15:31:02 +01:00
Oliver Eyton-Williams
cf4b9a1557 feat: client overhaul proof of concept (#45844)
* chore: initial setup of web package

This is *not* a workspace, yet, because it would be nice to use the
latest React, but /client can't migrate (yet).

Having two React versions creates issues in workspaces since /.bin/next
gets hoisted to root... and finds the root React version :(

* feat: add config for next

* fix: use jsx-runtime for web linting

* chore: init curriculum-server with json-server

* chore: integrate curriculum-server with TS/eslint

* feat: add patch script

json-server doesn't like keys with '/'s in so, for now I'm just patching
them out.

This lets us keep a strong separation between this WIP and the rest of
the code.

* fix: use port 8000 to avoid conflicts

* feat: crude ISR demo using challenge pages

* feat: extend ISR demo to use params

* feat: return props for specific superblocks

* chore: re-organise folders

* refactor: put data fetching in a single module

* refactor: challenge page slightly

* feat: add link to test ISR

You can see that, if you run next dev, the linked page gets regenerated
whenever you navigate to it.  However, if you run next build that is no
longer the case and the page has to be reloaded for the user to see the
latest version.

The implication is that we'll need another method (Web worker, probably)
to detect if the page needs to be updated.

* feat: render static paths for rwd

* feat: add monaco Editor

* feat: send less data via props

Rather than sending superblocks, this now sends blocks. Next step, just
the challenge!

* fix: only send individual challenge's data

* feat: send /learn/stuff/<id> to the challenge page

* fix: redirect to path with trailing id

* fix: handle all possible path prefixes

* feat: add superblocks with trailing ids

* chore: rename block -> blockOrId

* chore: remove logs

* fix: return notFound if page id is missing

* chore: add a note about increasing TS strictness

* feat: serverside redirects

This should be a touch more performant, but mostly it separates the
concerns.

Since the server already has the responsibility of choosing what pages
to render, redirects fit naturally with its concerns.

* refactor: clean up param validation

* feat: create list of blocks in superblock

* feat: add challenge links to map

* feat: link to full path, not just id

* refactor: ensure props match getStaticProps

By specifying the props for GetStaticProps we ensure that it returns the
expected data and use InferGetStaticPropsType to get the type out again
for use in the component

* feat: improve and document dev experience

* refactor: separate routing from rendering

* refactor: extract routing logic into functions

* refactor: naming consistency

* refactor: move data wrangling into get-curriculum

* refactor: align blockOrId and id

* chore: remove the server from workspaces

* chore: remove the lock

* docs: paths

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>

* chore: install before linting

* fix: create env.json before installing new client

* chore: ignore generated json file

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2022-05-09 11:30:15 -05:00
Naveen
f2580f58a6 chore: set permissions for GitHub actions (#45876)
* chore: Set permissions for GitHub actions

 Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>

* Update .github/workflows/codeql-analysis.yml

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>

* Update .github/workflows/labeler.yaml

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>

* Update .github/workflows/node.js-tests-upcoming.yml

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>

* Update .github/workflows/node.js-tests.yml

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>

* Update .github/workflows/codeql-analysis.yml

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>

* Update .github/workflows/labeler.yaml

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>

* Update .github/workflows/labeler.yaml

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2022-05-08 15:17:44 +05:30
Naomi Carrigan
bc9634a799 feat: migrate to issue forms (#45858)
* feat: migrate to issue forms

* fix: validation errors

* feat: add description field
2022-05-04 12:25:39 -05:00