Skip to content

Commit

Permalink
chore: update dependencies, remove unused ones
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Apr 17, 2022
1 parent 5ff6e82 commit 174f8e2
Show file tree
Hide file tree
Showing 744 changed files with 19,412 additions and 22,401 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 174f8e2

Please sign in to comment.