Skip to content

Commit fa5c86d

Browse files
committed
ci: switch to GHA
1 parent 7429c57 commit fa5c86d

File tree

5 files changed

+101
-97
lines changed

5 files changed

+101
-97
lines changed

.circleci/config.yml

-96
This file was deleted.

.github/workflows/release.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test:
10+
uses: ./.github/workflows/test.yml
11+
12+
release:
13+
name: Release
14+
runs-on: ubuntu-latest
15+
needs: test
16+
environment: npm
17+
permissions:
18+
id-token: write # for CFA and npm provenance
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22+
with:
23+
persist-credentials: false
24+
- name: Setup Node.js
25+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
26+
with:
27+
node-version: 20.x
28+
cache: 'yarn'
29+
- name: Install
30+
run: yarn install --frozen-lockfile
31+
- uses: continuousauth/action@4e8a2573eeb706f6d7300d6a9f3ca6322740b72d # v1.0.5
32+
with:
33+
project-id: ${{ secrets.CFA_PROJECT_ID }}
34+
secret: ${{ secrets.CFA_SECRET }}
35+
npm-token: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
schedule:
8+
- cron: '0 22 * * 3'
9+
workflow_call:
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
test:
16+
name: Test
17+
strategy:
18+
matrix:
19+
node-version:
20+
- '20.9'
21+
- '18.17'
22+
- '16.20'
23+
- '14.21'
24+
os:
25+
- macos-latest
26+
- ubuntu-latest
27+
- windows-latest
28+
runs-on: "${{ matrix.os }}"
29+
steps:
30+
# rc-edit.exe does not support arm64
31+
- name: Install Rosetta
32+
if: ${{ matrix.os == 'macos-latest' }}
33+
run: /usr/sbin/softwareupdate --install-rosetta --agree-to-license
34+
- name: Homebrew Cache
35+
if: ${{ matrix.os == 'macos-latest' }}
36+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
37+
with:
38+
path: /usr/local/Homebrew
39+
key: v1-brew-cache-${{ matrix.os }}
40+
- name: Install OS Dependencies (Linux)
41+
if: ${{ matrix.os == 'ubuntu-latest' }}
42+
run: |
43+
sudo dpkg --add-architecture i386
44+
sudo apt-get update
45+
sudo apt-get install --no-install-recommends -y wine64 wine32 wine
46+
- name: Install OS Dependencies (macOS)
47+
if: ${{ matrix.os == 'macos-latest' }}
48+
run: |
49+
brew install --cask xquartz
50+
brew install --cask --no-quarantine wine-stable
51+
- name: Checkout
52+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
53+
- name: Setup Node.js
54+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
55+
with:
56+
node-version: "${{ matrix.node-version }}"
57+
cache: 'yarn'
58+
architecture: ${{ matrix.node-version == '14.21' && 'x64' || env.RUNNER_ARCH }}
59+
- name: Install
60+
run: yarn install --frozen-lockfile
61+
- name: Test
62+
run: yarn test

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# node-rcedit
22

3-
[![CircleCI build status](https://circleci.com/gh/electron/node-rcedit/tree/main.svg?style=shield)](https://circleci.com/gh/electron/node-rcedit/tree/main)
3+
[![Test](https://github.com/electron/node-rcedit/actions/workflows/test.yml/badge.svg)](https://github.com/electron/node-rcedit/actions/workflows/test.yml)
44
[![NPM package](https://img.shields.io/npm/v/rcedit)](https://npm.im/rcedit)
55

66
Node module to edit resources of Windows executables.

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
"engines": {
2929
"node": ">= 14.0.0"
3030
},
31+
"publishConfig": {
32+
"provenance": true
33+
},
3134
"dependencies": {
3235
"cross-spawn-windows-exe": "^1.1.0"
3336
},

0 commit comments

Comments
 (0)