Skip to content

Commit

Permalink
chore: Freeze CI node version.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdok committed Aug 19, 2024
1 parent 5779966 commit d9d9d90
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Checkout codebase
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: "18", cache: "yarn" }
with: { node-version: "18.18", cache: "yarn" }
- name: Prettier
run: make prettier

Expand All @@ -24,7 +24,7 @@ jobs:
- name: Checkout codebase
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: "18", cache: "yarn" }
with: { node-version: "18.18", cache: "yarn" }
- name: Run linter
run: make lint

Expand All @@ -34,7 +34,7 @@ jobs:
- name: Checkout codebase
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: "18", cache: "yarn" }
with: { node-version: "18.18", cache: "yarn" }
- name: Build & bundle
run: make bundle

Expand All @@ -44,6 +44,6 @@ jobs:
- name: Checkout codebase
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: "18", cache: "yarn" }
with: { node-version: "18.18", cache: "yarn" }
- name: Run tests
run: make test
6 changes: 5 additions & 1 deletion jest/setupFilesAfterEnv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ global.console = {
error: jest.fn(),
};

beforeEach(() => {});
beforeEach(() => {
Object.defineProperty(global, "performance", {
writable: true,
});
});

afterEach(() => {
// To mock modules from reusable make functions.
Expand Down

0 comments on commit d9d9d90

Please sign in to comment.