Skip to content

Commit

Permalink
fix: update CI to maintained node.js releases
Browse files Browse the repository at this point in the history
  • Loading branch information
ForbesLindesay committed Sep 25, 2024
1 parent 8035c02 commit c8c056b
Show file tree
Hide file tree
Showing 6 changed files with 183 additions and 429 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
refs:
- &container
docker:
- image: node:14
- image: node:20
environment:
PG_URL: 'postgres://test-user@localhost:5432/test-db'
MYSQL_URL: 'mysql://test-user:password@localhost:3306/test-db'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows-src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function yarnInstallWithCache(nodeVersion: Expression<string>): Steps {
run('yarn install --prefer-offline');
};
}
export function setup(nodeVersion: Expression<string> = '14.x'): Steps {
export function setup(nodeVersion: Expression<string> = '20.x'): Steps {
return ({use, add}) => {
use('actions/checkout@v2');
use('actions/setup-node@v1', {
Expand Down Expand Up @@ -121,7 +121,7 @@ export default createWorkflow(({setWorkflowName, addTrigger, addJob}) => {

const {node} = setBuildMatrix(
{
node: ['14.x', '16.x', '18.x'],
node: ['18.x', '20.x', '22.x'],
},
{failFast: false},
);
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Get yarn cache directory path
run: echo "::set-output name=dir::$(yarn cache dir)"
Expand All @@ -30,7 +30,7 @@ jobs:
${{steps.step_3.outputs.dir}}
node_modules
packages/*/node_modules
key: ${{runner.os}}-14.x-${{hashFiles('yarn.lock')}}-2
key: ${{runner.os}}-20.x-${{hashFiles('yarn.lock')}}-2
- run: yarn install --prefer-offline
- name: Enable Cache
uses: actions/cache@v2
Expand Down Expand Up @@ -163,9 +163,9 @@ jobs:
strategy:
matrix:
node:
- 14.x
- 16.x
- 18.x
- 20.x
- 22.x
fail-fast: false
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -279,7 +279,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Get yarn cache directory path
run: echo "::set-output name=dir::$(yarn cache dir)"
Expand All @@ -291,7 +291,7 @@ jobs:
${{steps.step_3.outputs.dir}}
node_modules
packages/*/node_modules
key: ${{runner.os}}-14.x-${{hashFiles('yarn.lock')}}-2
key: ${{runner.os}}-20.x-${{hashFiles('yarn.lock')}}-2
- run: yarn install --prefer-offline
- run: yarn prettier:check
lint:
Expand All @@ -302,7 +302,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Get yarn cache directory path
run: echo "::set-output name=dir::$(yarn cache dir)"
Expand All @@ -314,7 +314,7 @@ jobs:
${{steps.step_3.outputs.dir}}
node_modules
packages/*/node_modules
key: ${{runner.os}}-14.x-${{hashFiles('yarn.lock')}}-2
key: ${{runner.os}}-20.x-${{hashFiles('yarn.lock')}}-2
- run: yarn install --prefer-offline
- name: "Load output: ${{needs.build.outputs.output}}"
uses: actions/download-artifact@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Get yarn cache directory path
run: echo "::set-output name=dir::$(yarn cache dir)"
Expand All @@ -30,7 +30,7 @@ jobs:
${{steps.step_3.outputs.dir}}
node_modules
packages/*/node_modules
key: ${{runner.os}}-14.x-${{hashFiles('yarn.lock')}}-2
key: ${{runner.os}}-20.x-${{hashFiles('yarn.lock')}}-2
- run: yarn install --prefer-offline
- name: Enable Cache
uses: actions/cache@v2
Expand Down
2 changes: 1 addition & 1 deletion packages/websql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"types": "./lib/index.d.ts",
"dependencies": {
"@databases/websql-core": "^0.0.0",
"websql": "^1.0.0"
"websql": "^2.0.3"
},
"scripts": {},
"repository": "https://github.com/ForbesLindesay/atdatabases/tree/master/packages/websql",
Expand Down
Loading

0 comments on commit c8c056b

Please sign in to comment.