Skip to content

Commit

Permalink
Merge pull request #1390 from ember-learn/node-version
Browse files Browse the repository at this point in the history
update node version and use pnpm
  • Loading branch information
mansona committed Jul 23, 2024
2 parents 865f541 + 006d2c6 commit ecdb88f
Show file tree
Hide file tree
Showing 9 changed files with 18,842 additions and 66,721 deletions.
38 changes: 13 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:

env:
NODE_VERSION: 14
NODE_VERSION: 20
PERCY_PARALLEL_NONCE: ${{ github.run_id }}-${{ github.run_number }}
PERCY_PARALLEL_TOTAL: 1

Expand All @@ -21,40 +21,28 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: Check out a copy of the repo
uses: actions/checkout@v3

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
cache: 'npm'
cache: 'pnpm'
node-version: ${{ env.NODE_VERSION }}

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint
- run: pnpm i --frozen-lockfile
- run: pnpm run lint

test-app:
name: Test app
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: Check out a copy of the repo
uses: actions/checkout@v3

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
cache: 'npm'
cache: 'pnpm'
node-version: ${{ env.NODE_VERSION }}

- name: Install dependencies
run: npm ci

- name: Test
run: npx percy exec -- npm run test
- run: pnpm install --frozen-lockfile
- run: pnpm percy exec -- pnpm run test
env:
PERCY_PARALLEL_NONCE: ${{ env.PERCY_PARALLEL_NONCE }}
PERCY_PARALLEL_TOTAL: ${{ env.PERCY_PARALLEL_TOTAL }}
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use-node-version=20.15.1
18 changes: 0 additions & 18 deletions app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,24 +97,6 @@ table {
width: 1px;
}

// anchor links used on h3 headings
.toc-anchor {
display: inline;
margin-right: var(--spacing-1);

&,
main &,
main &:link,
main &:visited {
background: none;
color: var(--color-gray-500);
}

&:hover {
opacity: 0.75;
}
}

@media (max-width: 1007px) {
body.no-scroll {
overflow: hidden;
Expand Down
7 changes: 6 additions & 1 deletion app/templates/components/main-layout.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@
{{#each result.contents as |content|}}
<DeprecationArticle @model={{content}}>
<h3 id="{{id-for-deprecation (or content.displayId content.id) content.anchor}}">
<LinkTo @route="id" @model={{content.id}} title={{content.title}} class="toc-anchor">§</LinkTo>
{{markdown-to-html
content.title
extensions="no-wrapper"
tagName=""
}}
<LinkTo @route="id" @model={{content.id}} title={{content.title}}>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<path
d="M326.61 185.4c59.75 59.8 58.93 155.69.36 214.58-.1.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.7 59.26-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.1-37.1c9.85-9.85 26.8-3.3 27.3 10.6a184.27 184.27 0 0 0 9.7 52.72 16.1 16.1 0 0 1-3.8 16.61l-13.08 13.1c-28.02 28.02-28.9 73.65-1.15 101.95 28.02 28.58 74.08 28.75 102.32.51l67.2-67.19a71.98 71.98 0 0 0-10.34-110.4 16.04 16.04 0 0 1-6.95-12.6 39.83 39.83 0 0 1 11.7-29.81l21.06-21.06a16.06 16.06 0 0 1 20.58-1.73 152.48 152.48 0 0 1 20.52 17.2zM467.55 44.44c-59.26-59.26-155.7-59.27-214.96 0l-67.2 67.2-.36.37c-58.57 58.9-59.39 154.78.36 214.59a152.45 152.45 0 0 0 20.52 17.2 16.07 16.07 0 0 0 20.58-1.74l21.06-21.05a39.83 39.83 0 0 0 11.7-29.8 16.04 16.04 0 0 0-6.95-12.61 71.98 71.98 0 0 1-10.34-110.4l67.2-67.2c28.23-28.23 74.3-28.06 102.32.52 27.75 28.3 26.87 73.93-1.15 101.96l-13.1 13.09a16.1 16.1 0 0 0-3.77 16.6c5.86 17.2 9.04 35 9.69 52.73.5 13.9 17.45 20.44 27.29 10.6l37.1-37.1c59.28-59.26 59.28-155.7 0-214.96z"></path>
</svg>
</LinkTo>
</h3>
</DeprecationArticle>
{{/each}}
Expand Down
1 change: 0 additions & 1 deletion config/fastboot.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global atob */
module.exports = function () {
return {
buildSandboxGlobals(defaultGlobals) {
Expand Down
5 changes: 4 additions & 1 deletion lib/content-docs-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"name": "content-docs-generator",
"keywords": [
"ember-addon"
]
],
"dependencies": {
"broccoli-merge-trees": "*"
}
}
Loading

0 comments on commit ecdb88f

Please sign in to comment.