Skip to content

Commit

Permalink
test change
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherChudzicki committed Aug 7, 2024
1 parent 3ba121f commit f967633
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/rc_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI
on: [push]
jobs:
test-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
ref: release-candidate

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

- name: Setup environment
run: sudo apt-get install libelf1

- run: |
grep -Eo -m 1 'VERSION\s+= .*([0-9]+)\.[0-9]+\.[0-9]+.*' main/settings.py |
head -1 |
grep -Eo "[0-9]+\.[0-9]+\.[0-9]+"
- run: cat scripts/get_version.sh

- run: bash scripts/get_version.sh
6 changes: 6 additions & 0 deletions frontends/mit-open/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const {
EMBEDLY_KEY,
CKEDITOR_UPLOAD_URL,
SENTRY_DSN,
SENTRY_ENV,
} = cleanEnv(process.env, {
NODE_ENV: str({
choices: ["development", "production", "test"],
Expand Down Expand Up @@ -99,6 +100,10 @@ const {
}),
})

console.log("HELLO FROM WEBPACK")
console.log("SENTRY_ENV", SENTRY_ENV)
console.log("VERSION", VERSION)

const MITOPEN_FEATURES_PREFIX = "FEATURE_"

const getFeatureFlags = () => {
Expand Down Expand Up @@ -217,6 +222,7 @@ module.exports = (env, argv) => {
CKEDITOR_UPLOAD_URL: JSON.stringify(CKEDITOR_UPLOAD_URL),
VERSION: JSON.stringify(VERSION),
SENTRY_DSN: JSON.stringify(SENTRY_DSN),
SENTRY_ENV: JSON.stringify(SENTRY_ENV),
POSTHOG: getPostHogSettings(),
SITE_NAME: JSON.stringify(SITE_NAME),
MITOPEN_SUPPORT_EMAIL: JSON.stringify(MITOPEN_SUPPORT_EMAIL),
Expand Down
5 changes: 1 addition & 4 deletions scripts/get_version.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/usr/bin/env bash

# Get VERSION from settings.py
grep -Eo -m 1 'VERSION\s+= .*(\d+)\.\d+\.\d+.*' main/settings.py |
head -1 |
grep -Eo "\d+\.\d+\.\d+"
echo hello chris

0 comments on commit f967633

Please sign in to comment.