Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
40 changes: 40 additions & 0 deletions .github/workflows/ci-events-graphql-proxy-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI-Events-Graphql-Proxy

on:
push:
branches: [main]
# Only consider those paths to trigger the action
paths:
- 'proxies/events-graphql-proxy/**'
- '.yarnrc.yml'
- 'tsconfig.base.json'
- '.prettier*'
- '.github/workflows/ci-events-graphql-proxy-check.yml'

pull_request:
branches: [main]
# Only consider those paths to trigger the action
paths:
- 'proxies/events-graphql-proxy/**'
- '.yarnrc.yml'
- 'tsconfig.base.json'
- '.prettier*'
- '.github/workflows/ci-events-graphql-proxy-check.yml'
workflow_dispatch:

jobs:
common:
uses: City-of-Helsinki/.github/.github/workflows/ci-node.yml@main
secrets: inherit
with:
node-version: 20
typecheck: true
app-directory: proxies/events-graphql-proxy
extra-commands: |
echo "GRAPHQL_PROXY_PORT=4100" >> $GITHUB_ENV
echo "GRAPHQL_PROXY_API_BASE_URL=https://api.hel.fi/linkedevents/v1/" >> $GITHUB_ENV
echo "GRAPHQL_PROXY_MAP_OPEN_DATA_API_BASE_URL=https://kartta.hel.fi/ws/geoserver/avoindata" >> $GITHUB_ENV
echo "GRAPHQL_PROXY_DISABLE_WINSTON_LOGGING=0" >> $GITHUB_ENV
echo "GRAPHQL_PROXY_INTROSPECTION=1" >> $GITHUB_ENV
echo "GRAPHQL_PROXY_SENTRY_ENVIRONMENT=development" >> $GITHUB_ENV
echo "GRAPHQL_PROXY_SENTRY_DSN=https://0b946822a84596cdd0453aa5d93d3b9e@sentry.test.hel.ninja/219" >> $GITHUB_ENV
67 changes: 67 additions & 0 deletions .github/workflows/ci-events-helsinki-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: CI-Events-Helsinki

on:
push:
branches: [main]
# Only consider those paths to trigger the action
paths:
- 'apps/events-helsinki/**'
- 'packages/components/**'
- 'packages/common-i18n/**'
- '.yarnrc.yml'
- 'tsconfig.base.json'
- '.prettier*'
- '.github/workflows/ci-events-helsinki-check.yml'

pull_request:
branches: [main]
# Only consider those paths to trigger the action
paths:
- 'apps/events-helsinki/**'
- 'packages/components/**'
- 'packages/common-i18n/**'
- '.yarnrc.yml'
- 'tsconfig.base.json'
- '.prettier*'
- '.github/workflows/ci-events-helsinki-check.yml'

env:
CI: true
FEDERATION_ROUTER_ENDPOINT: https://events-graphql-federation-events.test.hel.ninja/
CMS_ORIGIN: https://tapahtumat.app-staging.hkih.hion.dev
LINKEDEVENTS_EVENT_ENDPOINT: https://api.hel.fi/linkedevents/v1/event

jobs:
common:
uses: City-of-Helsinki/.github/.github/workflows/ci-node.yml@main
secrets: inherit
with:
node-version: 20
typecheck: true
app-directory: apps/events-helsinki
extra-commands: |
# Timezone for tests
echo "TZ=Europe/Helsinki" >> $GITHUB_ENV
# Speed up build: they are linted in a previous step
echo "NEXTJS_IGNORE_ESLINT=true" >> $GITHUB_ENV
# Speed up build: they are typechecked in a previous step
echo "NEXTJS_IGNORE_TYPECHECK=true" >> $GITHUB_ENV
# Speed up build: don't run if not needed, enable if it becomes needed
echo "NEXT_DISABLE_SOURCEMAPS=true" >> $GITHUB_ENV
# Don't send telemetry for ci
echo "NEXT_TELEMETRY_DISABLED=true" >> $GITHUB_ENV
# To allow checking size-limits
echo "NEXTJS_DISABLE_SENTRY=false" >> $GITHUB_ENV
# Fully disable sentry upload
echo "NEXTJS_SENTRY_UPLOAD_DRY_RUN=true" >> $GITHUB_ENV
echo "FEDERATION_ROUTER_ENDPOINT=https://events-graphql-federation-events.test.hel.ninja/" >> $GITHUB_ENV
echo "CMS_ORIGIN=https://tapahtumat.app-staging.hkih.hion.dev" >> $GITHUB_ENV
echo "LINKEDEVENTS_EVENT_ENDPOINT=https://api.hel.fi/linkedevents/v1/event" >> $GITHUB_ENV
# Mock origin
echo "NEXT_PUBLIC_APP_ORIGIN=https://localhost:3001" >> $GITHUB_ENV
echo "NEXT_PUBLIC_MATOMO_URL_BASE=//webanalytics.digiaiiris.com/js/" >> $GITHUB_ENV
echo "NEXT_PUBLIC_MATOMO_SITE_ID=708" >> $GITHUB_ENV
echo "NEXT_PUBLIC_MATOMO_SRC_URL=piwik.min.js" >> $GITHUB_ENV
echo "NEXT_PUBLIC_MATOMO_TRACKER_URL=tracker.php" >> $GITHUB_ENV
echo "NEXT_PUBLIC_MATOMO_ENABLED=0" >> $GITHUB_ENV
echo "SKIP_BUILD_STATIC_GENERATION=1" >> $GITHUB_ENV
62 changes: 62 additions & 0 deletions .github/workflows/ci-hobbies-helsinki-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: CI-Hobbies-Helsinki

on:
push:
branches: [main]
# Only consider those paths to trigger the action
paths:
- 'apps/hobbies-helsinki/**'
- 'packages/components/**'
- 'packages/common-i18n/**'
- '.yarnrc.yml'
- 'tsconfig.base.json'
- '.prettier*'
- '.github/workflows/ci-hobbies-helsinki-check.yml'

pull_request:
branches: [main]
# Only consider those paths to trigger the action
paths:
- 'apps/hobbies-helsinki/**'
- 'packages/components/**'
- 'packages/common-i18n/**'
- '.yarnrc.yml'
- 'tsconfig.base.json'
- '.prettier*'
- '.github/workflows/ci-hobbies-helsinki-check.yml'
workflow_dispatch:

jobs:
common:
uses: City-of-Helsinki/.github/.github/workflows/ci-node.yml@main
secrets: inherit
with:
node-version: 20
typecheck: true
app-directory: apps/hobbies-helsinki
extra-commands: |
# Timezone for tests
echo "TZ=Europe/Helsinki" >> $GITHUB_ENV
# Speed up build: they are linted in a previous step
echo "NEXTJS_IGNORE_ESLINT=true" >> $GITHUB_ENV
# Speed up build: they are typechecked in a previous step
echo "NEXTJS_IGNORE_TYPECHECK=true" >> $GITHUB_ENV
# Speed up build: don't run if not needed, enable if it becomes needed
echo "NEXT_DISABLE_SOURCEMAPS=true" >> $GITHUB_ENV
# Don't send telemetry for ci
echo "NEXT_TELEMETRY_DISABLED=true" >> $GITHUB_ENV
# To allow checking size-limits
echo "NEXTJS_DISABLE_SENTRY=false" >> $GITHUB_ENV
# Fully disable sentry upload
echo "NEXTJS_SENTRY_UPLOAD_DRY_RUN=true" >> $GITHUB_ENV
echo "FEDERATION_ROUTER_ENDPOINT=https://events-graphql-federation-hobbies.test.hel.ninja/" >> $GITHUB_ENV
echo "CMS_ORIGIN=https://harrastus.app-staging.hkih.hion.dev" >> $GITHUB_ENV
echo "LINKEDEVENTS_EVENT_ENDPOINT=https://api.hel.fi/linkedevents/v1/event" >> $GITHUB_ENV
# Mock origin
echo "NEXT_PUBLIC_APP_ORIGIN=https://localhost:3001" >> $GITHUB_ENV
echo "NEXT_PUBLIC_MATOMO_URL_BASE=//webanalytics.digiaiiris.com/js/" >> $GITHUB_ENV
echo "NEXT_PUBLIC_MATOMO_SITE_ID=939" >> $GITHUB_ENV
echo "NEXT_PUBLIC_MATOMO_SRC_URL=piwik.min.js" >> $GITHUB_ENV
echo "NEXT_PUBLIC_MATOMO_TRACKER_URL=tracker.php" >> $GITHUB_ENV
echo "NEXT_PUBLIC_MATOMO_ENABLED=0" >> $GITHUB_ENV
echo "SKIP_BUILD_STATIC_GENERATION=1" >> $GITHUB_ENV
19 changes: 7 additions & 12 deletions .github/workflows/ci-monorepo-integrity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,18 @@ name: CI-monorepo-integrity

on:
push:
branches:
- dev
- main
branches: [main]
paths:
- 'yarn.lock'
- '.yarnrc.yml'
- '.github/workflows/**'
- '.github/workflows/ci-monorepo-integrity.yml'

pull_request:
types:
- opened
- synchronize
- reopened
branches: [main]
paths:
- 'yarn.lock'
- '.yarnrc.yml'
- '.github/workflows/**'
- '.github/workflows/ci-monorepo-integrity.yml'

jobs:
test:
Expand All @@ -27,10 +22,10 @@ jobs:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -41,7 +36,7 @@ jobs:
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- name: Restore yarn cache
uses: actions/cache@v3
uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- '.prettier*'
- 'tsconfig.base.json'
- '.prettier*'
- '.github/workflows/**'
- '.github/workflows/ci-packages.yml'

pull_request:
types:
Expand All @@ -26,7 +26,7 @@ on:
- '.prettier*'
- 'tsconfig.base.json'
- '.prettier*'
- '.github/workflows/**'
- '.github/workflows/ci-packages.yml'

env:
CI: true
Expand All @@ -38,14 +38,14 @@ jobs:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# Fetch all git history so that yarn workspaces --since can compare with the correct commits
# @link https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
fetch-depth: 0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -56,7 +56,7 @@ jobs:
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- name: Restore yarn cache
uses: actions/cache@v3
uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand All @@ -65,7 +65,7 @@ jobs:
yarn-cache-folder-

- name: Restore packages cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/.cache
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/ci-sports-helsinki-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: CI-Sports-Helsinki

on:
push:
branches: [main]
# Only consider those paths to trigger the action
paths:
- 'apps/sports-helsinki/**'
- 'packages/components/**'
- 'packages/common-i18n/**'
- '.yarnrc.yml'
- 'tsconfig.base.json'
- '.prettier*'
- '.github/workflows/ci-sports-helsinki-check.yml'

pull_request:
branches: [main]
# Only consider those paths to trigger the action
paths:
- 'apps/sports-helsinki/**'
- 'packages/components/**'
- 'packages/common-i18n/**'
- '.yarnrc.yml'
- 'tsconfig.base.json'
- '.prettier*'
- '.github/workflows/ci-sports-helsinki-check.yml'

jobs:
common:
uses: City-of-Helsinki/.github/.github/workflows/ci-node.yml@main
secrets: inherit
with:
node-version: 20
typecheck: true
app-directory: apps/sports-helsinki
extra-commands: |
# Timezone for tests
echo "TZ=Europe/Helsinki" >> $GITHUB_ENV
# Speed up build: they are linted in a previous step
echo "NEXTJS_IGNORE_ESLINT=true" >> $GITHUB_ENV
# Speed up build: they are typechecked in a previous step
echo "NEXTJS_IGNORE_TYPECHECK=true" >> $GITHUB_ENV
# Speed up build: don't run if not needed, enable if it becomes needed
echo "NEXT_DISABLE_SOURCEMAPS=true" >> $GITHUB_ENV
# Don't send telemetry for ci
echo "NEXT_TELEMETRY_DISABLED=true" >> $GITHUB_ENV
# To allow checking size-limits
echo "NEXTJS_DISABLE_SENTRY=false" >> $GITHUB_ENV
# Fully disable sentry upload
echo "NEXTJS_SENTRY_UPLOAD_DRY_RUN=true" >> $GITHUB_ENV
echo "FEDERATION_ROUTER_ENDPOINT=https://events-graphql-federation-sports.test.hel.ninja/" >> $GITHUB_ENV
echo "CMS_ORIGIN=https://liikunta.app-staging.hkih.hion.dev" >> $GITHUB_ENV
echo "LINKEDEVENTS_EVENT_ENDPOINT=https://api.hel.fi/linkedevents/v1/event" >> $GITHUB_ENV
# Mock origin
echo "NEXT_PUBLIC_APP_ORIGIN=https://localhost:3001" >> $GITHUB_ENV
echo "NEXT_PUBLIC_MATOMO_URL_BASE=//webanalytics.digiaiiris.com/js/" >> $GITHUB_ENV
echo "NEXT_PUBLIC_MATOMO_SITE_ID=939" >> $GITHUB_ENV
echo "NEXT_PUBLIC_MATOMO_SRC_URL=piwik.min.js" >> $GITHUB_ENV
echo "NEXT_PUBLIC_MATOMO_TRACKER_URL=tracker.php" >> $GITHUB_ENV
echo "NEXT_PUBLIC_MATOMO_ENABLED=0" >> $GITHUB_ENV
echo "SKIP_BUILD_STATIC_GENERATION=1" >> $GITHUB_ENV
Loading
Loading