Skip to content

Commit

Permalink
Merge pull request #9661 from guardian/revert-9466-sndrs/yarn-4
Browse files Browse the repository at this point in the history
  • Loading branch information
sndrs authored Nov 27, 2023
2 parents 6951efb + 8661a2c commit 85a245b
Show file tree
Hide file tree
Showing 34 changed files with 34,218 additions and 30,816 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/amp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
node-version-file: '.nvmrc'
cache: 'yarn'

- run: yarn install --immutable
- run: yarn install --frozen-lockfile

- name: Validate AMP
run: make ampValidation
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ar-chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
cache: 'yarn'

# Root yarn installs all workspaces (root, dotcom)
- run: yarn install --immutable
- run: yarn install --frozen-lockfile

- name: Chromatic - Apps Rendering
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ar-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- name: Install dependencies
run: |
yarn --silent --immutable
yarn --silent --frozen-lockfile
# Execute some tasks from the `apps-rendering/package.json` file, using `yarn`
- name: Build and package
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ar-nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
node-version-file: '.nvmrc'
cache: 'yarn'

- run: yarn --immutable
- run: yarn --frozen-lockfile

- name: lint
run: yarn lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ar-pr-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
cache: 'yarn'

- name: install
run: yarn --immutable
run: yarn --frozen-lockfile
working-directory: apps-rendering
- name: run
working-directory: apps-rendering
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
node-version-file: '.nvmrc'
cache: 'yarn'

- run: yarn install --immutable
- run: yarn install --frozen-lockfile

- name: Generate production build
run: make build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bundle-analyser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
node-version-file: '.nvmrc'
cache: 'yarn'

- run: yarn install --immutable
- run: yarn install --frozen-lockfile

- name: Generate production build
run: make build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
node-version-file: '.nvmrc'
cache: 'yarn'

- run: yarn install --immutable
- run: yarn install --frozen-lockfile

- name: Cypress run
uses: cypress-io/github-action@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dcr-chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
cache: 'yarn'

# Root yarn installs all workspaces (root, dotcom)
- run: yarn install --immutable
- run: yarn install --frozen-lockfile

- name: Chromatic - DCR
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
node-version-file: '.nvmrc'
cache: 'yarn'

- run: yarn install --immutable
- run: yarn install --frozen-lockfile

- name: Run Jest
run: CI=true yarn test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
node-version-file: '.nvmrc'
cache: 'yarn'
# Make sure we install dependencies in the root directory
- run: yarn install --immutable
- run: yarn install --frozen-lockfile
- run: make build
working-directory: dotcom-rendering
- name: Install and run Lighthouse CI
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
node-version-file: '.nvmrc'
cache: 'yarn'

- run: yarn install --immutable
- run: yarn install --frozen-lockfile

- name: Install Playwright Browsers
run: yarn playwright install --with-deps chromium
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
node-version-file: .nvmrc
cache: 'yarn'
# Make sure we install dependencies in the root directory
- run: yarn install --immutable
- run: yarn install --frozen-lockfile
- run: make build
working-directory: dotcom-rendering
- name: Boot server and run ngrok
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
node-version-file: '.nvmrc'
cache: 'yarn'

- run: yarn install --immutable
- run: yarn install --frozen-lockfile

- name: Prettier check
run: yarn prettier:check
2 changes: 1 addition & 1 deletion .github/workflows/schema-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
node-version-file: '.nvmrc'
cache: 'yarn'

- run: yarn install --immutable
- run: yarn install --frozen-lockfile

- name: Run check-schema script
run: make check-schema
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stories-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
node-version-file: '.nvmrc'
cache: 'yarn'

- run: yarn install --immutable
- run: yarn install --frozen-lockfile

- name: Run check-stories script
run: make check-stories
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
node-version-file: .nvmrc
cache: 'yarn'

- run: yarn install --immutable
- run: yarn install --frozen-lockfile

- name: Check typescript
run: yarn tsc
Expand Down
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,9 @@ yarn-error.log*

# Dependency directories
node_modules
.yarn/*

# Things yarn might create that we'd want to check in
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
# Yarn Integrity file
.yarn-integrity

# IDE files
.idea
Expand Down
2 changes: 1 addition & 1 deletion .husky/post-merge
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ changedNode="$(echo "$changedFiles" | { grep '.nvmrc' || :; })"
if [[ ! -z $changedLock ]]
then
echo "${RED}This application has new dependencies. Running 'yarn'... ${ENDCOLOR}"
yarn --immutable
yarn --frozen-lockfile
fi

if [[ ! -z $changedNode ]]
Expand Down
7 changes: 7 additions & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


lastUpdateCheck 1641478836503

save-exact true
5 changes: 0 additions & 5 deletions .yarnrc.yml

This file was deleted.

2 changes: 1 addition & 1 deletion apps-rendering/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"author": "",
"license": "ISC",
"dependencies": {
"@aws-sdk/client-ssm": "3.441.0",
"@aws-sdk/credential-providers": "3.441.0",
"@aws-sdk/client-ssm": "3.441.0",
"@babel/core": "7.23.2",
"@babel/preset-env": "^7.20.2",
"@creditkarma/thrift-server-core": "^1.0.4",
Expand Down
2 changes: 0 additions & 2 deletions apps-rendering/src/client/article.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/no-deprecated -- currently still working in 17 mode */

// ----- Imports ----- //

import type { Client as NotificationsClient } from '@guardian/bridget/Notifications';
Expand Down
2 changes: 0 additions & 2 deletions apps-rendering/src/client/callouts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/no-deprecated -- currently still working in 17 mode */

import type { Contact } from '@guardian/apps-rendering-api-models/contact';
import type { FormField } from '@guardian/apps-rendering-api-models/formField';
import type { FormOption } from '@guardian/apps-rendering-api-models/formOption';
Expand Down
2 changes: 0 additions & 2 deletions apps-rendering/src/client/editions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/no-deprecated -- currently still working in 17 mode */

import {
initPingEditionsRendering,
MessageKind,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* @jest-environment jsdom
*/

/* eslint-disable react/no-deprecated -- currently still working in 17 mode */

import { matchers } from '@emotion/jest';
import { EmbedTracksType } from '@guardian/content-api-models/v1/embedTracksType';
import { none, some } from '@guardian/types';
Expand Down
2 changes: 0 additions & 2 deletions apps-rendering/src/components/Follow/Follow.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* @jest-environment jsdom
*/

/* eslint-disable react/no-deprecated -- currently still working in 17 mode */

// ----- Imports ----- //

import { ArticleDesign, ArticleDisplay, ArticlePillar } from '@guardian/libs';
Expand Down
3 changes: 0 additions & 3 deletions apps-rendering/src/components/PinnedPost/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@ const PinnedPost: FC<Props> = ({ pinnedPost, format, edition }: Props) => {
/>
</div>
<div id="pinned-post-overlay" css={overlayStyles} />
{/* eslint-disable jsx-a11y/label-has-associated-control --
i don't know why it's failing, it has htmlFor */}
<label
css={fakeButtonStyles(format)}
htmlFor="pinned-post-checkbox"
Expand All @@ -203,7 +201,6 @@ const PinnedPost: FC<Props> = ({ pinnedPost, format, edition }: Props) => {
</span>
</>
</label>
{/* eslint-enable jsx-a11y/label-has-associated-control */}
</div>
);
};
Expand Down
Loading

0 comments on commit 85a245b

Please sign in to comment.