Skip to content

Commit

Permalink
chore: update dependencies, remove unused ones (#100)
Browse files Browse the repository at this point in the history
* chore: update dependencies, remove unused ones

* fix types

* Updates snapshots

* Fixes prepack

* try with Node.js 16.x

* Update more packages

* Upgrade to Jest 28

* Bump other packages

* Bump other packages

* Use Node.js 14.19.2

* Revert "try with Node.js 16.x"

This reverts commit 45aa8a3.
This reverts commit 4a275f6.

* Use specific Node.js version

* trying something

* Pin exact Node.js version number

* Bump Jest to 28.1.0

* dist-upgrade

* Don't pin Node.js version when it's not necessary

* Update more dependencies

* Update more dependencies

* Revert "Pin exact Node.js version number"

This reverts commit dd72a68.

Co-authored-by: Maël Nison <[email protected]>
  • Loading branch information
aduh95 and arcanis authored May 15, 2022
1 parent 5ff6e82 commit 6c736c3
Show file tree
Hide file tree
Showing 1,032 changed files with 19,125 additions and 23,939 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,38 @@ jobs:
strategy:
matrix:
platform:
- [linux, ubuntu-latest]
- [darwin, macos-latest]
- [linux, ubuntu-latest]
- [darwin, macos-latest]

runs-on: ${{matrix.platform[1]}}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14.x

- name: 'Build Node with corepack master'
run: |
yarn install --immutable
yarn pack
git clone -b mael/pmm --depth=1 https://github.com/arcanis/node.git node && cd node
git config user.name 'John Doe'
git config user.email '[email protected]'
rm -rf deps/corepack && tar xvf ../package.tgz && mv package deps/corepack
git add .
if ! git diff-index --quiet HEAD; then
git commit -m 'Updates corepack'
git show --name-status
fi
./configure
DISTTYPE=nightly DATESTRING=YYYY-MM-DD COMMIT=XXXX make binary -j8
mv node-v15.0.0-nightlyYYYY-MM-DDXXXX-*.tar.gz node-corepack-${{matrix.platform[0]}}-x64.tar.gz
- name: "Build Node with corepack master"
run: |
corepack yarn install --immutable
corepack yarn pack
git clone -b mael/pmm --depth=1 https://github.com/arcanis/node.git node && cd node
git config user.name 'John Doe'
git config user.email '[email protected]'
rm -rf deps/corepack && tar xvf ../package.tgz && mv package deps/corepack
git add .
if ! git diff-index --quiet HEAD; then
git commit -m 'Updates corepack'
git show --name-status
fi
./configure
DISTTYPE=nightly DATESTRING=YYYY-MM-DD COMMIT=XXXX make binary -j8
mv node-v15.0.0-nightlyYYYY-MM-DDXXXX-*.tar.gz node-corepack-${{matrix.platform[0]}}-x64.tar.gz
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: node-corepack-${{matrix.platform[0]}}-x64
path: node/node-corepack-${{matrix.platform[0]}}-x64.tar.gz
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: node-corepack-${{matrix.platform[0]}}-x64
path: node/node-corepack-${{matrix.platform[0]}}-x64.tar.gz
42 changes: 21 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,57 +8,57 @@ on:

jobs:
chore:
name: 'Testing chores'
name: "Testing chores"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- run: |
git fetch --no-tags --unshallow origin HEAD main
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: 14

- name: 'Check that the cache files are consistent with their remote sources'
- name: "Check that the cache files are consistent with their remote sources"
run: |
if [[ $(git diff --name-only "$(git merge-base origin/"$TARGET_BRANCH" HEAD)" HEAD -- .yarn/cache | wc -l) -gt 0 ]]; then
yarn --immutable --immutable-cache --check-cache
corepack yarn --immutable --immutable-cache --check-cache
fi
shell: bash
if: |
github.event.pull_request != ''
env:
TARGET_BRANCH: ${{github.event.pull_request.base.ref}}

- name: 'Check for type errors'
run: yarn typecheck
- name: "Check for type errors"
run: corepack yarn typecheck

build:
strategy:
fail-fast: false
matrix:
node:
- 14
- 14
platform:
- ubuntu-latest
- macos-latest
- windows-latest
- ubuntu-latest
- macos-latest
- windows-latest

name: '${{matrix.platform}} w/ Node.js ${{matrix.node}}.x'
name: "${{matrix.platform}} w/ Node.js ${{matrix.node}}.x"
runs-on: ${{matrix.platform}}
needs: chore

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: 'Use Node.js ${{matrix.node}}.x'
uses: actions/setup-node@master
with:
node-version: ${{matrix.node}}.x
- name: "Use Node.js ${{matrix.node}}.x"
uses: actions/setup-node@v3
with:
node-version: ${{matrix.node}}.x

- run: yarn install --immutable
- run: yarn build # We need the stubs to run the tests
- run: yarn eslint
- run: yarn jest
- run: corepack yarn install --immutable
- run: corepack yarn build # We need the stubs to run the tests
- run: corepack yarn eslint
- run: corepack yarn jest
76 changes: 38 additions & 38 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,52 +3,52 @@ name: Version Sync
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: 'Update the package manager versions'
run: |
LATEST_NPM=$(curl https://registry.npmjs.org/npm | jq '.["dist-tags"].latest')
LATEST_PNPM=$(curl https://registry.npmjs.org/pnpm | jq '.["dist-tags"].latest')
LATEST_YARN=$(curl https://registry.npmjs.org/yarn | jq '.["dist-tags"].latest')
LATEST_BERRY=$(curl https://repo.yarnpkg.com/tags | jq '.latest.stable')
jq < config.json > config.json.new '. * '"{
definitions: {
npm: {
default: $LATEST_NPM,
},
pnpm: {
default: $LATEST_PNPM,
},
yarn: {
default: $LATEST_YARN,
transparent: {
default: $LATEST_BERRY,
- uses: actions/checkout@v3

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14.x

- name: "Update the package manager versions"
run: |
LATEST_NPM=$(curl https://registry.npmjs.org/npm | jq '.["dist-tags"].latest')
LATEST_PNPM=$(curl https://registry.npmjs.org/pnpm | jq '.["dist-tags"].latest')
LATEST_YARN=$(curl https://registry.npmjs.org/yarn | jq '.["dist-tags"].latest')
LATEST_BERRY=$(curl https://repo.yarnpkg.com/tags | jq '.latest.stable')
jq < config.json > config.json.new '. * '"{
definitions: {
npm: {
default: $LATEST_NPM,
},
pnpm: {
default: $LATEST_PNPM,
},
yarn: {
default: $LATEST_YARN,
transparent: {
default: $LATEST_BERRY,
},
},
},
},
}"
}"
rm config.json
mv config.json.new config.json
rm config.json
mv config.json.new config.json
if [[ ! -z "$(git status --porcelain)" ]]; then
git config user.email '[email protected]'
git config user.name 'Node.js GitHub Bot'
if [[ ! -z "$(git status --porcelain)" ]]; then
git config user.email '[email protected]'
git config user.name 'Node.js GitHub Bot'
git add config.json
git commit -m 'chore: update package manager versions'
git push
fi
git add config.json
git commit -m 'chore: update package manager versions'
git push
fi
Loading

0 comments on commit 6c736c3

Please sign in to comment.