Skip to content

Commit

Permalink
Merge pull request #24 from rally25rs/upgrade-yarn-modern
Browse files Browse the repository at this point in the history
Upgrade Yarn to v4.0.2
  • Loading branch information
rally25rs committed Dec 6, 2023
2 parents 2ac1a01 + 3227445 commit 4db2eea
Show file tree
Hide file tree
Showing 10 changed files with 6,616 additions and 4,469 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/client_build.yml
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4
- name: Build/Publish Client Docker
uses: elgohr/Publish-Docker-Github-Action@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/server_build.yml
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4
- name: Build/Publish Server Docker
uses: elgohr/Publish-Docker-Github-Action@v5
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Expand Up @@ -7,10 +7,10 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: borales/actions-yarn@v2.0.0
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cmd: install
- uses: borales/actions-yarn@v2.0.0
with:
cmd: test
node-version: 20
- run: corepack enable
- run: yarn install
- run: yarn test
Binary file added .yarn/install-state.gz
Binary file not shown.
1 change: 1 addition & 0 deletions .yarnrc.yml
@@ -0,0 +1 @@
nodeLinker: node-modules
7 changes: 6 additions & 1 deletion README.md
Expand Up @@ -187,7 +187,12 @@ Options:

# Contributing

This project is built as a `yarn` monorepo.
This project is built as a `yarn` monorepo and uses yarn "modern".

Set up `yarn` by enabling nodejs `corepack` (requires nodejs v16+)
```
corepack enable
```

To install dependencies:
```
Expand Down
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -6,12 +6,12 @@
"author": "Jeff Valore (rally25rs)",
"license": "MIT",
"private": true,
"packageManager": "yarn@4.0.2",
"workspaces": [
"packages/*"
],
"scripts": {
"test": "yarn workspaces run test",
"build": "yarn workspaces run build"
},
"dependencies": {}
"test": "yarn workspaces foreach -A run test",
"build": "yarn workspaces foreach -A run build"
}
}
2 changes: 1 addition & 1 deletion packages/k8s-when-ready-client/package.json
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"author": "Jeff Valore (rally25rs)",
"license": "MIT",
"private": false,
"packageManager": "yarn@4.0.2",
"scripts": {
"test": "jest",
"build": "docker build ."
Expand Down
6 changes: 4 additions & 2 deletions packages/k8s-when-ready-server/package.json
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"author": "Jeff Valore (rally25rs)",
"license": "MIT",
"private": false,
"packageManager": "yarn@4.0.2",
"scripts": {
"test": "jest",
"build": "docker build ."
Expand All @@ -18,6 +18,8 @@
"jest": "^24.9.0"
},
"jest": {
"setupFilesAfterEnv": ["../../jest.setup.js"]
"setupFilesAfterEnv": [
"../../jest.setup.js"
]
}
}

0 comments on commit 4db2eea

Please sign in to comment.