Skip to content

Commit

Permalink
fix: fixed issues with github actions and package versions (#396)
Browse files Browse the repository at this point in the history
* fix: fixed issues with github actions and package versions

* fix: disabled v8 compile cache for actions

* fix: trying to fix github actions
  • Loading branch information
darkadept committed Mar 13, 2024
1 parent be8938b commit fec74a9
Show file tree
Hide file tree
Showing 11 changed files with 69 additions and 85 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/buildcode/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ runs:
using: 'composite'
steps:
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: 'yarn'

- name: node_modules cache
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: |
Expand All @@ -26,10 +26,11 @@ runs:
- name: Run build
shell: bash
run: |
yarn nx reset
yarn build -v
- name: Store build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build
retention-days: 1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/canary-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Build & release canary
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/canary/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ runs:
using: 'composite'
steps:
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: 'yarn'

- name: node_modules cache
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: |
Expand All @@ -44,16 +44,19 @@ runs:
if: steps.cache.outputs.cache-hit != 'true'
shell: bash
run: |
yarn nx reset
yarn install
- name: Run build
shell: bash
run: |
yarn nx reset
yarn build -v
- name: Run typescript
shell: bash
run: |
yarn nx reset
yarn ts -v
- name: Publish canary
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/installdeps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ runs:
using: 'composite'
steps:
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: 'yarn'

- name: node_modules cache
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: |
Expand All @@ -33,4 +33,5 @@ runs:
- name: Check dependencies
shell: bash
run: |
yarn nx reset
yarn deps -v
5 changes: 3 additions & 2 deletions .github/workflows/lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ runs:
using: 'composite'
steps:
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: 'yarn'

- name: node_modules cache
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: |
Expand All @@ -26,4 +26,5 @@ runs:
- name: Run linting
shell: bash
run: |
yarn nx reset
yarn lint -v
16 changes: 9 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Test Workflow
env:
DISABLE_V8_COMPILE_CACHE: 1
on:
push:
branches-ignore:
Expand All @@ -11,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install & cache dependencies
uses: ./.github/workflows/installdeps

Expand All @@ -21,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Lint code
uses: ./.github/workflows/lint

Expand All @@ -31,7 +33,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Build code
uses: ./.github/workflows/buildcode

Expand All @@ -41,13 +43,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Fetch build artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: build
- name: Fetch ts artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: ts
- name: Run tests
Expand All @@ -59,6 +61,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run ts
uses: ./.github/workflows/typescript
5 changes: 3 additions & 2 deletions .github/workflows/tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ runs:
using: 'composite'
steps:
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: 'yarn'

- name: node_modules cache
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: |
Expand All @@ -26,4 +26,5 @@ runs:
- name: Run tests
shell: bash
run: |
yarn nx reset
yarn test -v
7 changes: 4 additions & 3 deletions .github/workflows/typescript/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ runs:
using: 'composite'
steps:
- name: Setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}

- name: node_modules cache
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: |
Expand All @@ -25,10 +25,11 @@ runs:
- name: Run ts
shell: bash
run: |
yarn nx reset
yarn ts -v
- name: Store ts artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ts
retention-days: 1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@babel/helper-string-parser": "^7.18.10",
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"@mikro-orm/core": "^4.5.10",
"@mikro-orm/core": "^5.9.8",
"@storybook/addon-actions": "^7.6.17",
"@storybook/addon-essentials": "^7.6.17",
"@storybook/addon-interactions": "^7.6.17",
Expand Down
2 changes: 1 addition & 1 deletion packages/mikroorm-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@thx/money": "^17.0.0"
},
"peerDependencies": {
"@mikro-orm/core": "4.x"
"@mikro-orm/core": "5.x"
},
"engines": {
"node": ">=20"
Expand Down

0 comments on commit fec74a9

Please sign in to comment.