Commit graph

46 commits

Author SHA1 Message Date
Felix Rieseberg
aa8331455e Disable release workflow 2024-10-07 09:20:40 -04:00
Christian Clauss
e6f4ede10c
chore(ci) test on Node.js v22 and not v16 (#3052) 2024-07-23 06:50:30 +02:00
Chengzhong Wu
8319847363
chore: publish to npm with release-please (#3051) 2024-07-22 10:39:31 +01:00
Sebastian Mellen
d1ed3d4dc3
fix(ci): use correct release-please-action domain after organization url was changed (#3032)
Co-authored-by: Luke Karrys <luke@lukekarrys.com>
2024-07-19 11:37:34 -07:00
Chengzhong Wu
b3916d5b25
chore: fix ruff command (#3044) 2024-07-09 19:03:10 +02:00
dependabot[bot]
10f6730be6
build(deps): bump seanmiddleditch/gha-setup-ninja from 4 to 5 (#3041)
Bumps [seanmiddleditch/gha-setup-ninja](https://github.com/seanmiddleditch/gha-setup-ninja) from 4 to 5.
- [Release notes](https://github.com/seanmiddleditch/gha-setup-ninja/releases)
- [Commits](https://github.com/seanmiddleditch/gha-setup-ninja/compare/v4...v5)

---
updated-dependencies:
- dependency-name: seanmiddleditch/gha-setup-ninja
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-28 15:40:58 +01:00
Toyo Li
6318d2b210
feat: support rebuild and build for cross-compiling Node-API module to wasm on Windows (#2974) 2024-06-28 15:36:30 +01:00
Toyo Li
ea99fea834
feat(gyp): update gyp to v0.18.1 (#3039)
* feat(gyp): update gyp to v0.18.1

* ci: setup ninja

* ci: visual-studio job use python 3.12
2024-06-12 10:23:37 +01:00
Christian Clauss
0bab6a071b
GitHub Actions: npm test is failing Windows tests on M1 Macs (#3011)
* GitHub Actions: npm test is failing Windows tests on M1 Macs

`npm test` is running and failing Windows `find-visualstudio` tests on an M1 Mac!!!

These tests are not being run or not failing on Intel Macs.

* Only run "Find Visual Studio" tests on Windows

* Update test/test-find-visualstudio.js

Co-authored-by: Christian Clauss <cclauss@me.com>

---------

Co-authored-by: Stefan Stojanovic <StefanStojanovic@users.noreply.github.com>
2024-04-11 17:34:49 +02:00
Christian Clauss
e1304e870b
Revert 2024-04-06 00:16:38 +02:00
Christian Clauss
7647a78bd7
Update tests.yml 2024-04-06 00:03:30 +02:00
Luke Karrys
fbf3fda875
Use new branch name format for release please CI tests 2024-03-08 15:59:51 -07:00
Ayushman Chhabra
0035d8e9dc
chore: upgrade release please action from v2 to v4 (#2982)
* chore(release-please-action): upgrade from v2 to v4

* chore(ci): remove target branch

* chore(release-please): disable `include-component-in-tag`

Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>

* chore(release-please): format JSON properties per line

Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>

* Remove last release sha

---------

Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
Co-authored-by: Luke Karrys <luke@lukekarrys.com>
2024-03-06 14:03:52 -07:00
Christian Clauss
c24cead6e3
Revert "build(deps): bump google-github-actions/release-please-action from 2 to 4" (#2967) 2024-01-25 07:32:33 +01:00
dependabot[bot]
b1f1808bff
build(deps): bump google-github-actions/release-please-action (#2961)
Bumps [google-github-actions/release-please-action](https://github.com/google-github-actions/release-please-action) from 2 to 4.
- [Release notes](https://github.com/google-github-actions/release-please-action/releases)
- [Changelog](https://github.com/google-github-actions/release-please-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google-github-actions/release-please-action/compare/v2...v4)

---
updated-dependencies:
- dependency-name: google-github-actions/release-please-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-20 20:11:30 +01:00
dependabot[bot]
3f0df7e933
build(deps): bump actions/setup-python from 4 to 5 (#2960)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-17 08:15:15 +01:00
Luke Karrys
cff9ac2c30 chore: only run release please on push
And then run release-please tests on release PRs
2023-11-06 09:49:22 -07:00
Luke Karrys
3032e1061c
chore: run tests after release please PR 2023-10-28 16:24:46 -07:00
Luke Karrys
864a979930
feat!: use .npmignore file to limit which files are published (#2921)
* feat!: use package.json files to limit which files are published

Fixes: #2372

* Use npmignore instead of package.json#files

* Add update-gyp.py to npmignore

* Add install to pack test

* Use output var for pack dir

* Move existing .gitignore entries to .npmignore

* Sort git and npm ignores

* Update and cleanup workflows
2023-10-28 16:07:44 -07:00
Luke Karrys
4e493d4fb2
chore: misc testing fixes (#2930)
* chore: misc test fixes

* Sort test runs by os first

* Use cross-env for test env var

* Try sorting matrix params

* Make FAST_TEST the default and rename to FULL_TEST

* Separate helper functions to not need to export test obj in files
2023-10-28 14:13:10 -07:00
Luke Karrys
21a7249b40
chore: add check engines script to CI (#2922) 2023-10-27 20:51:20 -07:00
DeeDeeG
707927cd57
feat(gyp): update gyp to v0.16.1 (#2923)
* feat(gyp): update gyp to v0.15.1

* Add Python 3.12 to tests

* Try to fix CI

* Try specifying msvs-version

* Modify the visual-studio matrix

* Fix pythonLocation var

* Fix Python tests

* Get path

* polish

* feat(gyp): update gyp to v0.16.0

* feat(gyp): update gyp to v0.16.1

* CI: Don't install Python 'packaging' module (vendored in 'gyp-next' now)

* Apply suggestions from code review

* Upgrade to actions/checkout@v4

---------

Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2023-10-27 17:12:14 -07:00
Alex
26683e993d
chore: GitHub Workflows security hardening (#2740)
* build: harden tests.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

* build: harden release-please.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

* build: harden visual-studio.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

* Update release-please.yml

---------

Signed-off-by: Alex <aleksandrosansan@gmail.com>
2023-10-27 10:45:09 -07:00
Christian Clauss
91fd8ffe6a
Python lint: ruff --format is now --output-format
Fixes the failing `ruff` linting in GitHub Actions.
2023-10-27 10:52:08 +02:00
Christian Clauss
bb93b946a9
docs: README.md Do not hardcode the supported versions of Python (#2880) 2023-08-25 21:04:27 +08:00
Stefan Stojanovic
a0b3d1c3af
test: remove deprecated Node.js and Python (#2868)
* test: remove deprecated node.js and python

Removed Node.js v14.x and Python v3.7. Also added Node.js v20.x.

* Update .github/workflows/tests.yml

Co-authored-by: Christian Clauss <cclauss@me.com>

---------

Co-authored-by: Christian Clauss <cclauss@me.com>
2023-06-12 21:41:39 +02:00
Raymond Zhao
337e8e6820
chore: get update-gyp.py to work with Python >= v3.5 (#2826)
* chore: get update-gyp.py to work with Python v3.9

* Ruff ignore rule PLC1901

---------

Co-authored-by: Christian Clauss <cclauss@me.com>
2023-04-06 20:07:02 +02:00
Christian Clauss
fc0ddc6523
feat: Upgrade Python linting from flake8 to ruff (#2815)
[Ruff](https://beta.ruff.rs/) supports [over 500 lint rules](https://beta.ruff.rs/docs/rules) including bandit, isort, pylint, pyupgrade, and flake8 plus its plugins and is written in Rust for speed.

This GitHub Action will provide contributors with intuitive GitHub Annotations.

![image](https://user-images.githubusercontent.com/3709715/223758136-afc386d2-70aa-4eff-953a-2c2d82ceea23.png)

The `Required` in the checks below should be:
1. Removed from `flake8-annotation` and added to `ruff-annotation` which replaces it.
2. Removed from `isort` and added to `ruff` which replaces it.
2023-03-13 11:43:22 +01:00
Luke Karrys
38f01fa57d
ci: update python test matrix (#2774)
* ci: drop python 3.6 from test matrix

* Update .github/workflows/tests.yml

Co-authored-by: Christian Clauss <cclauss@me.com>

Co-authored-by: Christian Clauss <cclauss@me.com>
2022-12-10 21:29:32 +01:00
Christian Clauss
ee46f9d2b5
Add Python 3.11 to the testing
https://docs.python.org/3/whatsnew/3.11.html
2022-11-14 08:43:25 +01:00
Christian Clauss
68b5b5be9c
test: Try msvs-version: [2016, 2019, 2022] (#2700)
* test: Try msvs-version: [2016, 2019, 2022]

* main, not master

* Don't npm audit fix --force
2022-07-13 10:11:32 +02:00
Christian Clauss
1c64ca7f47
test: Upgrade GitHub Actions (#2701)
* test: Upgrade GitHub Actions

* node: 18x --> 18.x
2022-07-13 10:11:12 +02:00
Michael Dawson
ca1f0681a5
build: update due to rename of primary branch 2022-06-15 11:57:51 -04:00
Christian Clauss
245cd5bbe4
test: Upgrade GitHub Actions (#2623) 2022-03-01 17:06:22 +01:00
Jiawen Geng
5a00387e5f
feat: support vs2022 (#2533) 2021-10-29 10:53:59 +08:00
Christian Clauss
0a67dcd130
test: Python 3.10 was release on Oct. 4th (#2504) 2021-10-05 18:20:29 +08:00
Christian Clauss
b7bccdb527
ci: GitHub Actions Test on node: [12.x, 14.x, 16.x] (#2439) 2021-06-28 14:10:59 +08:00
DeeDeeG
07e9d7c7ee
meta: add release-please-action for automated releases (#2395)
Co-authored-by: gengjiawen <technicalcute@gmail.com>
2021-05-19 15:22:00 +08:00
Christian Clauss
0093ec8646 gyp: Improve our flake8 linting tests
PR-URL: https://github.com/nodejs/node-gyp/pull/2356
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
2021-03-31 07:38:26 +00:00
Sora Morimoto
0d8a6f1b19
ci: update actions/setup-node to v2 (#2302)
PR-URL: https://github.com/nodejs/node-gyp/pull/2302
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
2021-03-26 19:59:28 +08:00
Jiawen Geng
15a5c7d45b
ci: migrate deprecated grammar (#2285)
PR-URL: https://github.com/nodejs/node-gyp/pull/2285
Reviewed-By: Richard Lau <rlau@redhat.com>
2020-12-18 17:25:28 +08:00
Christian Clauss
7fb314339f
test: GitHub Actions: Test on Python 3.9
From python: [3.6, 3.7, 3.8] --> python: [3.6, 3.8, 3.9] because if things work on Python 3.6 and 3.8 then they should work on 3.7.

https://www.python.org/downloads/release/python-390/
PR-URL: https://github.com/nodejs/node-gyp/pull/2230
Reviewed-By: Shelley Vohr <shelley.vohr@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
2020-10-15 10:24:59 +11:00
Shelley Vohr
2317dc400c
ci: switch to GitHub Actions
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Matias Lopez <imatlopez@gmail.com>
PR-URL: https://github.com/nodejs/node-gyp/pull/2210
Closes: #2127
Closes: #2209
2020-10-15 10:24:59 +11:00
BSKY
ca86ef2539
test: bump actions/checkout from v1 to v2
PR-URL: https://github.com/nodejs/node-gyp/pull/2063
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
2020-03-09 18:18:13 +11:00
Christian Clauss
31ecc8421d test: add Windows to GitHub Actions testing (#1996)
PR-URL: https://github.com/nodejs/node-gyp/pull/1996
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
2019-12-29 15:43:40 +08:00
Christian Clauss
5a64e9bd32
test: initial Github Actions with Ubuntu & macOS
Running Python standalone tests on multiple OSes would free up Travis CI for tests of various combinations of Node.js and Python as well as tests on other [CPU architectures](https://docs.travis-ci.com/user/multi-cpu-architectures).  __arch: amd64, arm64, ppc64le, s390x__

PR-URL: https://github.com/nodejs/node-gyp/pull/1985
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
2019-12-16 10:36:08 +11:00