Commit Graph

55 Commits

Author SHA1 Message Date
Antoine du Hamel 2c2005cc42
chore: fix permissions of `update-nock-files.yml` (#556) 2024-09-07 10:50:48 +00:00
Antoine du Hamel 4ca33d3974
chore: fix `sync.yml` permissions (#554) 2024-09-07 12:20:26 +02:00
Antoine du Hamel 72c2951ee5
Revert "chore: publish to npm with `--provenance` (#520)" (#530)
This reverts commit 1828961d81.
2024-07-13 11:01:24 +02:00
Antoine du Hamel b498551005
Revert "chore(ci): pass `NPM_TOKEN` to `npm publish` step (#527)" (#529)
This reverts commit dece8891bb.
2024-07-13 10:59:47 +02:00
Antoine du Hamel dece8891bb
chore(ci): pass `NPM_TOKEN` to `npm publish` step (#527) 2024-07-13 08:07:47 +00:00
Wojciech Maj 1828961d81
chore: publish to npm with `--provenance` (#520)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-07-12 12:43:52 +00:00
Wojciech Maj 0cc6c866ee
chore(ci): test on Node.js 22.x (#519)
With Node.js 22 quickly getting closer to LTS, we should be testing Corepack using it.
2024-07-12 10:53:43 +02:00
Antoine du Hamel 5b5f76ca14
chore: validate head of branch when running workflow on forks PRs (#490) 2024-06-09 00:45:35 +02:00
Antoine du Hamel 3da534695e
chore(ci): better check for Nocks changes (#491)
When there are no changes, asking Git to compare the db file directly
will always report change even though the actual data stored is the
same. Instead, we can compare a SQL dump to detect actual changes.

Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
2024-06-06 12:20:01 +00:00
Kristoffer K 967e2666b5
test: store nocks in a sqlite database (#374)
* test: store nocks in a sqlite3 database

* chore: remove nock files

* refactor: reuse statement

* Update tests/recordRequests.js

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

* refactor: only create statements when needed

* refactor: move nocks db up one level

* fix: close db on exit

---------

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-02-24 00:59:12 +01:00
Antoine du Hamel c2a6e4f313
chore(ci): bump actions and add dependabot config (#367) 2024-01-30 18:20:08 +00:00
Antoine du Hamel adcd989ca4
chore(ci): test on Node.js 21.x (#344) 2023-12-29 12:16:34 +01:00
Antoine du Hamel 6d3992811a
chore(ci): update the version of Node.js used to update Nock files (#311) 2023-10-06 10:23:38 +00:00
Antoine du Hamel 787e24df60
chore: update supported Node.js versions (#309)
BREAKING CHANGE: remove support for Node.js 16.x
2023-09-15 10:42:51 +02:00
Antoine du Hamel 7e364adf0e
chore(ci): add whole package archive to GH release (#267) 2023-05-19 10:11:58 +00:00
Antoine du Hamel 74f679d8a7
chore: update supported Node.js versions (#258)
BREAKING CHANGE: remove support for Node.js 14.x
2023-05-19 10:29:33 +02:00
Antoine du Hamel c94c4003fd
chore(ci): add prebuilt executable to GitHub release (#243) 2023-05-19 10:17:18 +02:00
Antoine du Hamel 47912f71d8
chore(ci): upgrade `gr2m/create-or-update-pull-request-action` version (#237) 2023-02-17 01:13:12 +01:00
Jongwoo Han 63950db683
chore(ci): Replace deprecated command with environment file (#234) 2023-02-07 00:11:30 +01:00
Kristoffer K 15ceb832a3
build: migrate to esbuild (#229) 2023-01-08 15:19:08 +01:00
Antoine du Hamel bc03266726
chore: cleanup GHA workflow files (#194) 2022-10-11 03:55:25 +02:00
Antoine du Hamel 3ca40140a5
chore: add GHA to update Nock files (#175) 2022-09-02 14:36:18 +02:00
Antoine du Hamel c0df287a57
chore: reduce test flakiness (#168) 2022-09-01 11:44:17 +02:00
Antoine du Hamel eac343e9b0
chore(ci): run `Version Sync` on Friday (#153)
Node.js own version sync script runs on Sunday, it makes sense to run
our own before that so we have to time to publish a release on time.
2022-08-02 17:19:14 +02:00
Antoine du Hamel c70c049205
chore(ci): fix `Version Sync` workflow (#149)
GHA uses OpenSSL 3.x, not 1.1.1, so the output was different on my machine.

Refs: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2204-Readme.md
2022-07-21 22:24:57 +02:00
Antoine du Hamel 550a7f51a6
chore: use SHA-224 instead of SHA-1 for Berry default version (#142)
SHA-224 provides much better security against collision than SHA-1 for
only 18 more chars in the version string.

Refs: https://en.wikipedia.org/wiki/SHA-2#Comparison_of_SHA_functions
2022-07-21 16:21:05 +02:00
Antoine du Hamel 9a153d2d4a
chore: add sha1 to default versions (#137)
Refs: https://github.com/nodejs/corepack/pull/133
2022-07-08 19:12:59 +02:00
Antoine du Hamel 01c7d638b0
fix(ci): YAML formatting in publish workflow (#124) 2022-06-12 19:23:14 +02:00
Antoine du Hamel e50d44a2c9
chore: fix GHA automations (#123) 2022-06-12 16:09:10 +01:00
Maël Nison dced8d1289
ci: add a publish workflow (#121)
* Adds a publish workflow

* Adds an explicit --immutable flag

* Update .github/workflows/publish.yml

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

* Uses release-please

* We don't need --tolerate-republish since release-please takes care of it

* Fix workflow name

* Update .github/workflows/publish.yml

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-06-11 23:08:37 +02:00
Antoine du Hamel 5051669a8d
chore: fix `Version Sync` action (#119) 2022-06-11 11:45:34 +02:00
Antoine du Hamel 78b243c881
ci: test on all supported Node.js versions (#116) 2022-06-02 00:47:40 +02:00
Antoine du Hamel e810142ede
ci: fix the Sync workflow (#117)
Co-authored-by: Maël Nison <nison.mael@gmail.com>
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
2022-06-02 00:47:26 +02:00
Maël Nison fb09145610
Use Yarn 4 RC on our CI (#109)
* Upgrades to Yarn 4 RC

* Removes the cache check from the CI

* Simplifies CI

* Revert "Simplifies CI"

This reverts commit b3a05f1857.

* Calls install before running the typecheck

* Runs build

* No need for the PnP files since we don't use zero-install

* Adds explicit `--immutable` + cache

* Apply suggestions from code review

Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>

Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
2022-06-01 15:40:54 +02:00
Antoine du Hamel cbd96fefa1
ci: simplify `Testing choses` job (#108) 2022-05-24 16:20:25 +02:00
Antoine du Hamel 6c736c3950
chore: update dependencies, remove unused ones (#100)
* 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 45aa8a3a96.
This reverts commit 4a275f68b6.

* 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 dd72a68061.

Co-authored-by: Maël Nison <nison.mael@gmail.com>
2022-05-15 10:35:13 +02:00
Maël Nison 1d41c48480
chore: auto-sync package manager versions (#88)
* chore: auto-sync package manager versions

* Disables nock

* Removes check for newline
2022-02-07 22:47:09 +01:00
Kristoffer K 5cfc6c9df0
fix: handle parallel installs (#84)
* fix: handle parallel installs

* build: skip unnecessary shims
2022-02-02 23:25:33 +01:00
Kristoffer K 4344ba1f09
ci: add cache validation (#82)
* chore: explicitly disable the global cache

* ci: add cache check

* chore: update incorrect checksums
2022-01-23 20:12:56 +01:00
Maël Nison 6f8c086b99
Windows CI (#21)
* Update ci.yml

* Implements ls-remote without spawning the git binary

* Implements enable/disable for Windows

* Triggers CI

* Mocks HTTP calls

* Fixes the shell on Windows

* Increases the timeout, thanks Windows
2020-10-03 21:18:23 +02:00
Maël Nison b592a8673d
Enables OSX tests (#15)
* Enables OSX tests

* Update ci.yml

* master -> main
2020-09-30 00:51:52 +02:00
Maël Nison 1a3db689dc
Implements enable / disable (#11)
* Implements enable / disable

* Adds tests

* Debugs GH-only crash

* Fixes CI by running the build beforehand

* Fixes build
2020-09-30 00:23:24 +02:00
merceyz 08b411b62e ci: validate lockfile 2020-09-29 14:00:28 +02:00
Maël Nison 8229cb7340 Dont crash on clean checkouts 2020-09-28 12:32:03 +02:00
Maël Nison 6e4584d6e2 Adds debug when building the Node image 2020-09-27 10:42:27 +02:00
Maël Nison b70e7b2616 Updates the workflow 2020-09-27 01:26:28 +02:00
Maël Nison 9809b8f856 Refactors pmm -> corepack 2020-09-27 00:51:52 +02:00
Maël Nison f8198bf504
Update build.yml 2020-08-05 01:03:26 +02:00
Maël Nison 81f081362b
Update build.yml 2020-08-04 23:38:45 +02:00
Maël Nison 5c27730f84 Fixes artifact path 2020-08-04 22:02:12 +02:00