Skip to content

Commit

Permalink
build: migrate to Yarn v1 from npm v7
Browse files Browse the repository at this point in the history
Why?
It was reported by other maintainers that yarn behaves much
better in corporate proxy/firewalled environments.

Future plans: Once Berry (Yarn v2) is stable, we should take
a look at migrating onto that one. I did give it a try this
time to see if their release candidate happened to be stable
enough but it was not unfortunately (there were dependency
resolution issues that lead the Yarn v2 not installing
certain runtime dependencies at all so v1 it is for now)

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed Jul 17, 2021
1 parent 2d4c29f commit f1e9a39
Show file tree
Hide file tree
Showing 66 changed files with 22,418 additions and 291,744 deletions.
27 changes: 1 addition & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,18 @@ on:

jobs:
build:

runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}

strategy:
fail-fast: true
fail-fast: false
max-parallel: 1024
matrix:
os: [ubuntu-20.04]
node-version: [v12.22.3, v14.15.1, v16.2.0]
experimental: [false]
# include:
#
# # FIXME macOS does not work due to lack of docker support in GHA.
# https://github.community/t/why-is-docker-not-installed-on-macos/17017
# - os: macos-11.0 # macOS Big Sur 11.0
# node-version: v12.22.3
# experimental: true
# - os: macos-10.15 # macOS Catalina 10.15
# node-version: v12.22.3
# experimental: true
#
# # FIXME
# https://github.com/hyperledger/cactus/issues/171
# - os: windows-2019 # Windows Server 2019
# node-version: v12.22.3
# experimental: true

steps:
# FIXME: These do not work on mac OS as of 2020-12-09
# https://github.community/t/why-is-docker-not-installed-on-macos/17017
# - name: Set up QEMU (ARM64 docker images once we are ready)
# uses: docker/setup-qemu-action@v1.0.1

# - name: Set up Docker Buildx (ARM64 docker images once we are ready)
# uses: docker/setup-buildx-action@v1.0.3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.1.2
with:
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,11 @@ build/
site/

.build-cache/*.tsbuildinfo

.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*
Loading

0 comments on commit f1e9a39

Please sign in to comment.