Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prod release #249

Merged
merged 228 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
228 commits
Select commit Hold shift + click to select a range
c1a520f
chore: fresh start with Angular 13 for new version
valerymelou Jan 2, 2022
3cb0097
chore: set up CI/CD
valerymelou Jan 2, 2022
4791f38
chore: upgrade Node version used in CI/CD
valerymelou Jan 2, 2022
41ee4c2
feat: add blog capabilities with @scullyio
valerymelou Jan 2, 2022
4e8f04a
chore: setup deploy action for hostme.space
valerymelou Jan 2, 2022
1b6f9d6
chore: update versions of used actions
valerymelou Jan 2, 2022
e47755d
chore: use host me key directly from environment variables
valerymelou Jan 2, 2022
27a688a
chore: set hostme.space api key as env variable
valerymelou Jan 2, 2022
08eb7e8
chore: enclose env api key in double quotes
valerymelou Jan 2, 2022
140b8cc
chore: test with a fake access token in blank
valerymelou Jan 2, 2022
2e889c2
chore: fix deploy script with curl
valerymelou Jan 2, 2022
5f21074
chore: run curl directly without action
valerymelou Jan 2, 2022
a2f0b1a
chore: add scully run to deploy workflow
valerymelou Jan 2, 2022
e7d1ad0
chore: change the zip strategy for deployment
valerymelou Jan 2, 2022
8e8795b
Merge pull request #99 from valerymelou/feature/blog
valerymelou Jan 3, 2022
f3165d4
chore: install and configure tailwind css
valerymelou Jan 4, 2022
20975b6
feat: add base layout and navbar
valerymelou Jan 6, 2022
051cb68
feat: improve navbar behavior for mobiles
valerymelou Jan 7, 2022
3daae8a
feat: add the social nav
valerymelou Jan 8, 2022
8c56077
feat: update position of social nav for mobiles
valerymelou Jan 8, 2022
cf109ec
feat: add footer
valerymelou Jan 12, 2022
4fce876
chore(deps): bump engine.io from 6.1.0 to 6.1.1
dependabot[bot] Jan 13, 2022
1a3e620
Merge pull request #100 from valerymelou/dependabot/npm_and_yarn/engi…
valerymelou Jan 13, 2022
2b0c3ba
chore(deps): bump follow-redirects from 1.14.6 to 1.14.7
dependabot[bot] Jan 15, 2022
9268c36
feat: add the home page
valerymelou Jan 15, 2022
f482809
Merge branch 'develop' of github.com:valerymelou/valerymelou.com into…
valerymelou Jan 15, 2022
a592f4b
Merge pull request #101 from valerymelou/dependabot/npm_and_yarn/foll…
valerymelou Jan 15, 2022
40cd024
feat: add about page
valerymelou Feb 19, 2022
4f83e94
Merge branch 'develop' of github.com:valerymelou/valerymelou.com into…
valerymelou Feb 19, 2022
83d8bf0
refactor: remove scully
valerymelou Feb 21, 2022
f88d65f
chore: enable prerendering with Angular Universal
valerymelou Feb 21, 2022
129674d
wip: add content full
valerymelou Feb 22, 2022
11afe4a
feat: implement project page using data from Contentful
valerymelou Feb 26, 2022
4ddc3f6
tests: add tests for the contentful service
valerymelou Feb 27, 2022
e952f99
tests: fix test that was failing in CI
valerymelou Mar 6, 2022
b8ce748
chore: init for v3
valerymelou Aug 8, 2022
6960d90
chore: create index and configure tailwind css
valerymelou Aug 8, 2022
ea50e52
chore: setup CI
valerymelou Aug 8, 2022
59504cb
chore: fix ci by using sudo
valerymelou Aug 8, 2022
55b3e62
chore: disable ci
valerymelou Aug 10, 2022
56bf5df
chore: new source code with Astro ;-)
valerymelou Sep 2, 2022
9399c10
chore: add tailwind css
valerymelou Sep 2, 2022
0970a31
chore: generate code for version 3 using NX
valerymelou Oct 1, 2022
494e3d6
chore: generate new portfolio app
valerymelou Oct 1, 2022
b6eaf5e
Merge pull request #110 from valerymelou/chore/setup-v3
valerymelou Oct 1, 2022
01aff5d
chore: enable prerendering the portfolio
valerymelou Oct 1, 2022
6757850
Merge pull request #111 from valerymelou/chore/pre-rendering
valerymelou Oct 1, 2022
10e561a
chore: setup ci
valerymelou Oct 1, 2022
0ba833c
chore: fix ci
valerymelou Oct 1, 2022
eef960c
chore: fix ci
valerymelou Oct 1, 2022
bde82e5
refactor: remove nx welcome component
valerymelou Oct 1, 2022
f11573a
chore: fix ci
valerymelou Oct 1, 2022
a5146cc
chore: debug ci
valerymelou Oct 1, 2022
96f5ac0
chore: debug ci
valerymelou Oct 1, 2022
769b757
chore: fix ci
valerymelou Oct 1, 2022
284c2a3
chore: setup cd
valerymelou Oct 1, 2022
a1ee7c3
chore: fix cd
valerymelou Oct 1, 2022
0b47143
chore: fix cd
valerymelou Oct 1, 2022
143b92a
chore: fix cd
valerymelou Oct 1, 2022
c1fb48d
chore: fix cd
valerymelou Oct 1, 2022
38c247e
chore: fix ci
valerymelou Oct 1, 2022
5edda4a
Merge pull request #112 from valerymelou/chore/ci-cd
valerymelou Oct 1, 2022
bdbe3b5
chore: fix ci/cd
valerymelou Oct 1, 2022
f9c2b8b
feat: add the navbar
valerymelou Oct 3, 2022
5e63928
feat: add the footer
valerymelou Oct 4, 2022
557d791
fix: lint issue
valerymelou Oct 4, 2022
c055939
Merge pull request #113 from valerymelou/feature/layout
valerymelou Oct 4, 2022
e9730d8
feat: improve display of the navbar
valerymelou Oct 12, 2022
e35b1b3
chore: new workspace for new version
Jul 12, 2023
ae864c8
chore: add blog app
Jul 12, 2023
52d8e50
chore: setup usage of environment variables
Jul 12, 2023
e5d9f24
feat: first version of the contentful client
Jul 12, 2023
cf17b88
feat: define the base layout of the blog
Jul 13, 2023
b2b18d7
chore: setup ci
Jul 13, 2023
a6f7ce7
chore(deps-dev): bump tailwindcss from 3.3.2 to 3.3.3
dependabot[bot] Jul 13, 2023
cfd27a9
chore(deps-dev): bump eslint from 8.15.0 to 8.44.0
dependabot[bot] Jul 13, 2023
749c431
chore: add codecov.yml
Jul 15, 2023
f57c589
Merge pull request #116 from valerymelou/dependabot/npm_and_yarn/esli…
valerymelou Jul 15, 2023
b14be62
Merge pull request #115 from valerymelou/dependabot/npm_and_yarn/tail…
valerymelou Jul 15, 2023
53ea6c5
feat: add animation to blog hero
Jul 15, 2023
c7ce8f8
Merge branch 'develop' of https://github.com/valerymelou/valerymelou.…
Jul 15, 2023
0062018
wip: contentful abstraction
Jul 16, 2023
daa4966
feat: add blog home page
Jul 21, 2023
b6599ec
chore: update dependencies
Jul 21, 2023
efad82a
chore(deps-dev): bump @angular/language-service from 16.1.4 to 16.1.6
dependabot[bot] Jul 21, 2023
c3fa22e
chore: update package-lock.json
Jul 21, 2023
d240d19
Merge pull request #125 from valerymelou/dependabot/npm_and_yarn/angu…
valerymelou Jul 23, 2023
c61b263
feat: replace all fonts by Inter var
Jul 23, 2023
a271e91
chore(deps-dev): bump prettier from 2.8.8 to 3.0.0
dependabot[bot] Jul 24, 2023
95e579b
chore(deps-dev): bump @angular-eslint/eslint-plugin
dependabot[bot] Jul 24, 2023
6399447
Merge pull request #131 from valerymelou/dependabot/npm_and_yarn/angu…
valerymelou Jul 25, 2023
a7cf2b8
Merge pull request #129 from valerymelou/dependabot/npm_and_yarn/pret…
valerymelou Jul 25, 2023
423deeb
chore(deps): bump nrwl/nx-set-shas from 3 to 4
dependabot[bot] Oct 16, 2023
2d5587c
refactor: new workspace
valerymelou Apr 7, 2024
faf480a
feat: create the portfolio app
valerymelou Apr 7, 2024
3aa931f
refactor: base layout of new version
valerymelou Apr 21, 2024
c7961d9
Update CI workflow to include 'develop' branch
valerymelou Apr 21, 2024
75d0bda
Refactor CI workflow and add merge-lcov script
valerymelou Apr 21, 2024
b733323
Update README.md with new website URL
valerymelou Apr 21, 2024
1421968
chore: add .codeclimate.yml configuration file
valerymelou May 10, 2024
6cab8d3
chore: update CI workflow to include Code Climate and NX Cache
valerymelou May 10, 2024
463674f
chore: update CI workflow to use nx run-many for running tests with c…
valerymelou May 10, 2024
be0f060
refactor: update button component and base layout
valerymelou May 20, 2024
a4c8647
feat: add about component
valerymelou May 20, 2024
d5f6d31
refactor: refactor the layout
valerymelou May 23, 2024
0413c48
chore: remove codecov from ci
valerymelou May 23, 2024
83c7319
Merge pull request #176 from valerymelou/refactor/layout
valerymelou May 23, 2024
cc44bf8
feat: prototype projects page
valerymelou May 24, 2024
ac78b92
Merge branch 'feature/projects' into develop
valerymelou May 24, 2024
3f757bd
refactor: rename portfolio into website
valerymelou May 24, 2024
f4ff84e
feat: add the cms and blog services to query data
valerymelou May 25, 2024
693ecca
Merge pull request #177 from valerymelou/feature/cms
valerymelou May 25, 2024
588bc55
Create dependabot.yml
valerymelou May 25, 2024
ce262d6
chore(deps): bump actions/setup-node from 3 to 4
dependabot[bot] May 25, 2024
29720d5
chore(deps): bump paambaati/codeclimate-action from 5.0.0 to 6.0.0
dependabot[bot] May 25, 2024
bdfb5dd
Merge pull request #178 from valerymelou/dependabot/github_actions/ac…
valerymelou May 26, 2024
5ecccc4
feat: add the blog home page
valerymelou May 26, 2024
8e9ba1b
Merge pull request #183 from valerymelou/feature/blog-home
valerymelou May 26, 2024
6a067b1
chore: upgrade workspace
valerymelou May 26, 2024
69c8940
Merge pull request #179 from valerymelou/dependabot/github_actions/pa…
valerymelou May 26, 2024
fddb4f9
Merge pull request #169 from valerymelou/dependabot/github_actions/nr…
valerymelou May 26, 2024
f35fb52
chore: update global theme
valerymelou May 26, 2024
e2688f2
Merge branch 'develop' of https://github.com/valerymelou/valerymelou.…
valerymelou May 26, 2024
f498e6b
chore(deps-dev): bump @swc/helpers from 0.5.8 to 0.5.11
dependabot[bot] May 27, 2024
c372d31
chore(deps-dev): bump ts-node from 10.9.1 to 10.9.2
dependabot[bot] May 27, 2024
7b2db23
chore(deps): bump @ng-icons/material-icons from 27.3.1 to 27.5.2
dependabot[bot] Jun 3, 2024
a1a004f
chore(deps-dev): bump @typescript-eslint/parser from 7.5.0 to 7.11.0
dependabot[bot] Jun 3, 2024
83d1bda
Merge pull request #184 from valerymelou/dependabot/npm_and_yarn/swc/…
valerymelou Jun 9, 2024
4bbc0fe
Merge pull request #187 from valerymelou/dependabot/npm_and_yarn/ts-n…
valerymelou Jun 9, 2024
0178ee7
Merge pull request #188 from valerymelou/dependabot/npm_and_yarn/ng-i…
valerymelou Jun 9, 2024
d3cceba
Merge pull request #189 from valerymelou/dependabot/npm_and_yarn/type…
valerymelou Jun 9, 2024
0adb2e3
chore: upgrade dependencies
valerymelou Jun 10, 2024
1ffc6ed
Merge pull request #194 from valerymelou/chore/upgrade-workspace
valerymelou Jun 10, 2024
fbba96c
chore(deps-dev): bump @angular-devkit/build-angular
dependabot[bot] Jun 10, 2024
41ce9da
chore(deps-dev): bump @typescript-eslint/parser from 7.11.0 to 7.13.0
dependabot[bot] Jun 10, 2024
cacf9fa
Merge pull request #195 from valerymelou/dependabot/npm_and_yarn/type…
valerymelou Jun 10, 2024
a44e502
Merge pull request #193 from valerymelou/dependabot/npm_and_yarn/angu…
valerymelou Jun 10, 2024
2c7fd8c
chore(deps): bump paambaati/codeclimate-action from 6.0.0 to 8.0.0
dependabot[bot] Jun 17, 2024
983d25c
chore(deps): bump contentful from 10.11.3 to 10.12.1
dependabot[bot] Jun 17, 2024
1fa1712
chore(deps-dev): bump tailwindcss from 3.4.3 to 3.4.4
dependabot[bot] Jun 17, 2024
42ea521
Merge pull request #196 from valerymelou/dependabot/github_actions/pa…
valerymelou Jun 17, 2024
f38e612
Merge pull request #198 from valerymelou/dependabot/npm_and_yarn/cont…
valerymelou Jun 17, 2024
201976f
Merge pull request #200 from valerymelou/dependabot/npm_and_yarn/tail…
valerymelou Jun 17, 2024
b07a745
chore(deps): bump zone.js from 0.14.4 to 0.14.7
dependabot[bot] Jun 17, 2024
ce7e333
chore(deps): bump the npm_and_yarn group with 3 updates
dependabot[bot] Jun 19, 2024
4e5dba4
chore(deps-dev): bump prettier-plugin-tailwindcss from 0.5.14 to 0.6.5
dependabot[bot] Jun 24, 2024
7ef2591
Merge pull request #203 from valerymelou/dependabot/npm_and_yarn/npm_…
valerymelou Jun 27, 2024
342b8b6
Merge pull request #204 from valerymelou/dependabot/npm_and_yarn/pret…
valerymelou Jun 27, 2024
b19a240
Merge pull request #199 from valerymelou/dependabot/npm_and_yarn/zone…
valerymelou Jun 29, 2024
cfd9e08
chore(deps-dev): bump @typescript-eslint/utils
dependabot[bot] Jul 1, 2024
d89edc1
chore(deps-dev): bump @typescript-eslint/eslint-plugin
dependabot[bot] Jul 1, 2024
77506c6
Merge pull request #208 from valerymelou/dependabot/npm_and_yarn/type…
valerymelou Jul 6, 2024
f86787b
Merge pull request #209 from valerymelou/dependabot/npm_and_yarn/type…
valerymelou Jul 6, 2024
5d7d50a
chore: update dependencies
valerymelou Jul 6, 2024
5d98a7e
feat: add metadata to pages
valerymelou Jul 7, 2024
d7110da
refactor: navigation
valerymelou Jul 7, 2024
1676f86
refactor: theming utilities
valerymelou Jul 7, 2024
8600cd2
refactor: blog page and ui-link
valerymelou Jul 7, 2024
4b84c51
chore(deps-dev): bump ts-jest from 29.1.2 to 29.1.5
dependabot[bot] Jul 8, 2024
be72a9f
Merge pull request #214 from valerymelou/dependabot/npm_and_yarn/ts-j…
valerymelou Jul 9, 2024
cb28067
feat: init article page
valerymelou Jul 12, 2024
4feb130
chore: setup continuous deployment on firebase hosting
valerymelou Jul 13, 2024
af258cd
Merge branch 'develop' of https://github.com/valerymelou/valerymelou.…
valerymelou Jul 13, 2024
70a293d
Merge branch 'develop' into chore/cd
valerymelou Jul 13, 2024
c75e3a9
chore(deps-dev): bump @angular-devkit/schematics from 18.0.1 to 18.1.0
dependabot[bot] Jul 13, 2024
439ee79
chore(deps-dev): bump @schematics/angular from 18.0.1 to 18.1.0
dependabot[bot] Jul 13, 2024
64b546f
chore: fix deployment pipeline
valerymelou Jul 13, 2024
cb08bbc
chore: fix logical expression in ci.yml
valerymelou Jul 13, 2024
094233b
chore: add dependency on test for deploy jobs in ci.yml
valerymelou Jul 13, 2024
6ce0271
Merge pull request #217 from valerymelou/chore/cd
valerymelou Jul 13, 2024
7e93a92
chore: refactor workflows
valerymelou Jul 13, 2024
ec2e6fc
Merge pull request #222 from valerymelou/chore/cd
valerymelou Jul 13, 2024
8971d35
chore: decouple build from deploy in cd.yml
valerymelou Jul 13, 2024
037e8e7
chore: add branch name in artifact name
valerymelou Jul 13, 2024
4427742
chore: run deploy workflow only if ref is master or develop
valerymelou Jul 13, 2024
b2240d2
Merge pull request #223 from valerymelou/chore/cd
valerymelou Jul 13, 2024
fb12917
chore: fix environment in build job
valerymelou Jul 13, 2024
9ce1c4d
Merge pull request #224 from valerymelou/chore/cd
valerymelou Jul 14, 2024
feef047
chore: fix environment in ci.yml
valerymelou Jul 14, 2024
17a48ae
Merge pull request #225 from valerymelou/chore/cd
valerymelou Jul 14, 2024
52f1bea
chore: set contentful environment variables from secrets
valerymelou Jul 14, 2024
3ac57b2
Merge pull request #226 from valerymelou/chore/cd
valerymelou Jul 14, 2024
d90d3a5
Merge branch 'develop' into dependabot/npm_and_yarn/angular-devkit/sc…
valerymelou Jul 14, 2024
5a0c28e
Merge pull request #219 from valerymelou/dependabot/npm_and_yarn/angu…
valerymelou Jul 14, 2024
6f05ead
chore(deps-dev): bump @angular/cli from 18.0.7 to 18.1.0
dependabot[bot] Jul 14, 2024
4f82395
Merge pull request #220 from valerymelou/dependabot/npm_and_yarn/angu…
valerymelou Jul 14, 2024
6c9f34a
Merge branch 'develop' into dependabot/npm_and_yarn/schematics/angula…
valerymelou Jul 14, 2024
7553e4e
chore(deps-dev): bump @angular/language-service from 18.0.0 to 18.1.0
dependabot[bot] Jul 14, 2024
4c33ba9
Merge branch 'develop' into dependabot/npm_and_yarn/schematics/angula…
valerymelou Jul 14, 2024
7a8e400
Merge pull request #221 from valerymelou/dependabot/npm_and_yarn/sche…
valerymelou Jul 14, 2024
448145d
Merge pull request #218 from valerymelou/dependabot/npm_and_yarn/angu…
valerymelou Jul 14, 2024
744a8ef
chore: fix yarn.lock
valerymelou Jul 14, 2024
e6f913e
chore: setup deploy previews
valerymelou Jul 14, 2024
47ef50d
chore: set staging deploys as live
valerymelou Jul 14, 2024
dd4ad90
chore: fix build condition for previews
valerymelou Jul 14, 2024
7e0a205
chore: fix how artifacts are named
valerymelou Jul 14, 2024
5d7349d
chore: fix the environment in deploy jobs
valerymelou Jul 14, 2024
914d229
Merge pull request #227 from valerymelou/chore/preview
valerymelou Jul 14, 2024
394ee41
fix: seo meta tags
valerymelou Jul 14, 2024
f65ca7d
Merge pull request #228 from valerymelou/fix/seo
valerymelou Jul 15, 2024
021f038
chore: run deploy job only if valerymelou is the author of the PR
valerymelou Jul 17, 2024
23fddea
chore: run deploy only for pull request created from the repo not forks
valerymelou Jul 17, 2024
067cdba
feat: render the content of an article
valerymelou Jul 18, 2024
634d649
Merge pull request #234 from valerymelou/feature/render-article
valerymelou Jul 18, 2024
c184c1a
styles: remove comment
valerymelou Jul 19, 2024
ee67114
feat: prerender the app at build time
valerymelou Jul 20, 2024
778cb89
fix: lint issue
valerymelou Jul 20, 2024
191f753
tests: fix failing tests
valerymelou Jul 20, 2024
244da1b
Merge pull request #239 from valerymelou/feature/prerender
valerymelou Jul 20, 2024
9a96a46
feat: prerender articles
valerymelou Jul 20, 2024
f9beacd
tests: fix tests for the blog-data-access
valerymelou Jul 20, 2024
fc44acf
fix: links text
valerymelou Jul 20, 2024
c41cd3e
Merge pull request #241 from valerymelou/feature/prerender-articles
valerymelou Jul 20, 2024
b8a6f46
fix: og image url rendering
valerymelou Jul 20, 2024
d50505d
refactor: skip hydration for the article component
valerymelou Jul 21, 2024
2c7b153
chore: configure firebase rewrites
valerymelou Jul 21, 2024
49ddd76
chore: fix pre render
valerymelou Jul 21, 2024
cadd609
refactor: enable hydration for the article component
valerymelou Jul 21, 2024
14efc57
refactor: disable animations on article component
valerymelou Jul 21, 2024
221fa1d
refactor: fix animations on mobile devices
valerymelou Jul 21, 2024
9c8994c
tests: fix failing tests
valerymelou Jul 21, 2024
bdadc8d
chore: add possibility to call deploy workflow from Contentful
valerymelou Jul 22, 2024
bfebe06
chore: update ci workflow to also check pr username before triggering…
valerymelou Jul 22, 2024
e1a6d82
Merge pull request #246 from valerymelou/chore/contentful-github-webhook
valerymelou Jul 22, 2024
0f6f8f7
feat: add loader when navigating between pages
valerymelou Jul 23, 2024
b43c461
Merge pull request #247 from valerymelou/feature/loading-animation
valerymelou Jul 23, 2024
891c549
chore: setup deployment for prod
valerymelou Jul 23, 2024
54bb13e
Merge pull request #248 from valerymelou/chore/production-environment
valerymelou Jul 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '2'
exclude_patterns:
- '**/*.spec.ts'
- '**/jest.config.ts'
- '**/test-setup.ts'
- '**/tests/*.py'
checks:
similar-code:
config:
threshold: 100
identical-code:
config:
threshold: 100
5 changes: 1 addition & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Editor configuration, see https://editorconfig.org
# Editor configuration, see http://editorconfig.org
root = true

[*]
Expand All @@ -8,9 +8,6 @@ indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
47 changes: 47 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nx"],
"overrides": [
{
"files": "*.json",
"parser": "jsonc-eslint-parser",
"rules": {}
},
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
},
{
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
"env": {
"jest": true
},
"rules": {}
}
]
}
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'

- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
101 changes: 101 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
on:
workflow_call:
repository_dispatch:
types: [publish-event]

jobs:
build:
runs-on: ubuntu-latest
environment: ${{ (github.event.client_payload.env && github.event_name == 'repository_dispatch') && github.event.client_payload.env || (github.ref == 'refs/heads/master' && 'production' || 'staging') }}
env:
VM_CONTENTFUL_SPACE: ${{ secrets.VM_CONTENTFUL_SPACE }}
VM_CONTENTFUL_ACCESS_TOKEN: ${{ secrets.VM_CONTENTFUL_ACCESS_TOKEN }}
VM_CONTENTFUL_ENVIRONMENT: ${{ (github.event.client_payload.env && github.event_name == 'repository_dispatch') && github.event.client_payload.env || (github.ref == 'refs/heads/master' && 'production' || 'staging') }}
outputs:
ENVIRONMENT: ${{ env.VM_CONTENTFUL_ENVIRONMENT }}
steps:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'

- run: yarn install
# Generate the routes for prerendering. This is the only way I found to pass
# environment variables to the executor.
- run: VM_CONTENTFUL_SPACE=${{ env.VM_CONTENTFUL_SPACE }} VM_CONTENTFUL_ACCESS_TOKEN=${{ env.VM_CONTENTFUL_ACCESS_TOKEN }} VM_CONTENTFUL_ENVIRONMENT=${{ env.VM_CONTENTFUL_ENVIRONMENT }} yarn nx run website:build-routes
- run: npx nx run website:prerender

- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: build-output-${{ env.VM_CONTENTFUL_ENVIRONMENT }}
path: |
dist

preview:
if: ${{ github.event.pull_request.base.ref == 'develop' }}
needs: build
runs-on: ubuntu-latest
environment: staging
steps:
- uses: actions/checkout@v4

- name: Download build result
uses: actions/download-artifact@v4
with:
path: dist
name: build-output-${{ needs.build.outputs.ENVIRONMENT }}

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
channelId: preview
projectId: ${{ secrets.FIREBASE_PROJECT_ID }}
target: ${{ secrets.FIREBASE_SITE_TARGET }}

staging:
if: github.ref == 'refs/heads/develop'
needs: build
runs-on: ubuntu-latest
environment: staging
steps:
- uses: actions/checkout@v4

- name: Download build result
uses: actions/download-artifact@v4
with:
path: dist
name: build-output-${{ needs.build.outputs.ENVIRONMENT }}

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
channelId: live
projectId: ${{ secrets.FIREBASE_PROJECT_ID }}
target: ${{ secrets.FIREBASE_SITE_TARGET }}

production:
if: github.ref == 'refs/heads/master'
needs: build
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4

- name: Download build result
uses: actions/download-artifact@v4
with:
path: dist
name: build-output-${{ needs.build.outputs.ENVIRONMENT }}

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
channelId: live
projectId: ${{ secrets.FIREBASE_PROJECT_ID }}
57 changes: 57 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI

on:
push:
branches: ['master', 'develop']
pull_request:
branches: ['master', 'develop']

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
actions: read
contents: read
checks: write
pull-requests: write

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout Code Repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: nrwl/nx-set-shas@v4
with:
main-branch-name: develop

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'

- run: yarn install
- run: npx nx affected --target=lint --parallel=3
- run: npx nx run-many --target=test --parallel=3 --code-coverage
- run: yarn merge-lcov

- name: Code Coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: |
${{github.workspace}}/coverage/lcov.info:lcov

deploy:
if: >
(github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' || (github.event.pull_request.base.ref == 'develop' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.login == 'valerymelou'))
needs: test
uses: ./.github/workflows/cd.yml
secrets: inherit
21 changes: 9 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
dist
tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out

# dependencies
/node_modules

# profiling files
chrome-profiler-events*.json
speed-measure-plugin*.json
node_modules

# IDEs and editors
/.idea
Expand All @@ -29,7 +23,6 @@ speed-measure-plugin*.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# misc
/.sass-cache
Expand All @@ -45,5 +38,9 @@ testem.log
.DS_Store
Thumbs.db

# Scully
scully.log
.nx/cache
.nx/workspace-data
.angular
.env
.firebaserc
routes.txt
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Add files here to ignore them from prettier formatting
/dist
/coverage
/.nx/cache
/.nx/workspace-data
.angular
86 changes: 0 additions & 86 deletions .snyk

This file was deleted.

Loading