Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
8c3357b
Update actions/checkout digest to eef6144 (#1686)
renovate[bot] Oct 22, 2024
f620c3a
Announce search count for screen readers (#1713)
ChristopherChudzicki Oct 22, 2024
47ee91e
Search count inside label (#1730)
ChristopherChudzicki Oct 23, 2024
5bd52bd
Update Yarn to v4.5.1 (#1716)
renovate[bot] Oct 23, 2024
c0ac29b
Clean out the static frontend (#1731)
jonkafton Oct 23, 2024
739b5bd
Middleware for SSL redirect (#1729)
jonkafton Oct 23, 2024
a066cc5
Navigation Accessibility (#1726)
ChristopherChudzicki Oct 24, 2024
b225c97
Fixes to make learn work with scim-for-keycloak (#1727)
rhysyngsun Oct 24, 2024
3519a74
Update dependency toolz to v1 (#1733)
renovate[bot] Oct 24, 2024
e9799f5
Update dependency faker to v30 (#1732)
renovate[bot] Oct 24, 2024
69f4893
Update dependency @faker-js/faker to v9 (#1735)
renovate[bot] Oct 24, 2024
86723a8
ol-template is not used (#1738)
abeglova Oct 24, 2024
dbf6984
Update dependency urllib3 to v2 (#1741)
renovate[bot] Oct 24, 2024
7dbe5a7
Update dependency moto to v5 (#1740)
renovate[bot] Oct 24, 2024
f5206f1
Update opensearchproject/opensearch Docker tag to v2.17.1 (#1746)
renovate[bot] Oct 24, 2024
4f22720
Update dependency ruff to v0.7.1 (#1745)
renovate[bot] Oct 24, 2024
4bdc2d2
Update dependency pygithub to v2 (#1748)
renovate[bot] Oct 24, 2024
4e60468
remove elasticsearch (#1734)
abeglova Oct 25, 2024
073bce9
fix list duplication when editing lists (#1749)
ChristopherChudzicki Oct 25, 2024
e27f1f2
restore images in subscription emails (#1747)
shanbady Oct 25, 2024
70eec4a
Shanbady/similar resources endpoint (#1743)
shanbady Oct 25, 2024
dad6b2f
Replace plain <a> tags with Next.js <Link> components (#1739)
jonkafton Oct 25, 2024
aa43e58
move nextjs hash.txt generation after heroku deploy (#1752)
ChristopherChudzicki Oct 25, 2024
9abaf10
Update dependency eslint to v8.57.1 (#1759)
renovate[bot] Oct 26, 2024
e7e2596
Update nginx Docker tag to v1.27.2 (#1760)
renovate[bot] Oct 26, 2024
d3eea62
Update redis Docker tag to v7.4.1 (#1761)
renovate[bot] Oct 26, 2024
8e5817d
Update Node.js to v20.18.0 (#1762)
renovate[bot] Oct 26, 2024
11cfae5
Update codecov/codecov-action action to v4.6.0 (#1763)
renovate[bot] Oct 27, 2024
18d6ac6
New LearningResourcePrice model (#1736)
mbertrand Oct 28, 2024
f57c000
Update dependency @mui/base to v5.0.0-beta.60 (#1758)
renovate[bot] Oct 28, 2024
f978b16
remove learning_path from search (#1753)
abeglova Oct 28, 2024
8d03302
Add the ol-profile openid scope to auth (#1765)
rhysyngsun Oct 28, 2024
8e6575d
Release 0.24.0
odlbot Oct 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 9 additions & 77 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,12 @@ jobs:
- 5432:5432

redis:
image: redis:7.4.0
image: redis:7.4.1
ports:
- 6379:6379

elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:8.15.1
env:
network.host: "0.0.0.0"
http.cors.enabled: "true"
http.cors.allow-origin: "*"
http.max_content_length: "10mb"
rest.action.multi.allow_explicit_index: "false"
ES_JAVA_OPTS: "-Xms1024m -Xmx1024m"
discovery.type: "single-node"
ports:
- 9200:9200

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4

- name: update apt
run: sudo apt-get update -y
Expand Down Expand Up @@ -94,14 +81,14 @@ jobs:
MITOL_COOKIE_NAME: cookie_monster

- name: Upload coverage to CodeCov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
file: ./coverage.xml

javascript-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
node-version: "^20"
Expand Down Expand Up @@ -151,7 +138,7 @@ jobs:
NODE_ENV: test

- name: Upload coverage to CodeCov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
file: coverage/lcov.info

Expand All @@ -160,7 +147,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4

- name: Build the Docker image
env:
Expand Down Expand Up @@ -205,7 +192,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4

- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
Expand All @@ -229,7 +216,7 @@ jobs:
GENERATOR_OUTPUT_DIR_VC: ./frontends/api/src/generated/v0
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
node-version: "^20"
Expand Down Expand Up @@ -268,7 +255,7 @@ jobs:
GENERATOR_OUTPUT_DIR_VC: ./frontends/api/src/generated/v1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
node-version: "^20"
Expand Down Expand Up @@ -296,58 +283,3 @@ jobs:
run: |
diff $GENERATOR_OUTPUT_DIR_CI $GENERATOR_OUTPUT_DIR_VC \
|| { echo "OpenAPI spec is out of date. Please regenerate via ./scripts/generate_openapi.sh"; exit 1; }

e2e-tests:
# Disabling the E2E tests for now
if: false
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
node-version: "^20"
cache: yarn
cache-dependency-path: e2e_testing/yarn.lock

- name: Install frontend dependencies
run: yarn install --immutable

- name: Build frontend
run: NODE_ENV=production yarn build

- name: Build exported components
run: NODE_ENV=production yarn workspace mit-learn build-exports

- name: Build services
run: docker compose -f docker-compose-e2e-tests.yml build

- name: Start services
run: docker compose -f docker-compose-e2e-tests.yml up nginx web --detach --wait

- name: Apply test data
run: ./e2e_testing/scripts/apply-fixtures.sh

- name: Install E2E test dependencies
working-directory: e2e_testing
run: yarn install --immutable

- name: Install Playwright browsers
working-directory: e2e_testing
run: yarn playwright install --with-deps chromium

- name: Run E2E tests
working-directory: e2e_testing
run: BASE_URL=http://localhost:8063 CI=true yarn test

- name: Setup Pages
if: always()
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5

- name: Upload artifact
if: always()
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4
with:
name: playwright-report
path: e2e_testing/playwright-report
4 changes: 2 additions & 2 deletions .github/workflows/openapi-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout HEAD
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
with:
ref: ${{ github.head_ref }}
path: head
- name: Checkout BASE
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
with:
ref: ${{ github.base_ref }}
path: base
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@ jobs:
github.event_name == 'workflow_dispatch' ||
github.event.workflow_run.conclusion == 'success'
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
with:
ref: release

- name: Set VERSION
run: echo "VERSION=$(./scripts/get_version.sh)" >> $GITHUB_ENV

- name: Write commit SHA to file
run: echo $GITHUB_SHA > frontends/main/public/hash.txt

- name: Heroku login
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
Expand All @@ -38,7 +35,10 @@ jobs:
heroku_email: ${{ secrets.HEROKU_EMAIL }}
branch: release

- name: Build and push the Docker image
- name: Write commit SHA to file
run: echo $GITHUB_SHA > frontends/main/public/hash.txt

- name: Build and push the NextJS Docker image
env:
HEROKU_APP_NAME: mitopen-production-nextjs
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4

- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@ jobs:
github.event_name == 'workflow_dispatch' ||
github.event.workflow_run.conclusion == 'success'
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
with:
ref: release-candidate

- name: Set VERSION
run: echo "VERSION=$(./scripts/get_version.sh)" >> $GITHUB_ENV

- name: Write commit SHA to file
run: echo $GITHUB_SHA > frontends/main/public/hash.txt

- name: Heroku login
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
Expand All @@ -38,7 +35,10 @@ jobs:
heroku_email: ${{ secrets.HEROKU_EMAIL }}
branch: release-candidate

- name: Build and push the Docker image
- name: Write commit SHA to file
run: echo $GITHUB_SHA > frontends/main/public/hash.txt

- name: Build and push the NextJS Docker image
env:
HEROKU_APP_NAME: mitopen-rc-nextjs
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
Expand Down
7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,5 @@ github-pages/public
# Storybook
storybook-static/

/e2e_testing/test-results/
/e2e_testing/playwright-report/
/e2e_testing/blob-report/
/e2e_testing/playwright/.cache/
!/e2e_testing/.env

/**/.yarn/cache
e2e_testing/.yarn/cache
.swc
Loading
Loading