File tree 6 files changed +84
-44
lines changed
6 files changed +84
-44
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
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@732eeb237ac0a0b330a7247f744ddc57898ff9c4 # v1.0.4
32
+ with :
33
+ project-id : ${{ secrets.CFA_PROJECT_ID }}
34
+ secret : ${{ secrets.CFA_SECRET }}
35
+ npm-token : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
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.16'
24
+ os :
25
+ - macos-latest
26
+ - ubuntu-latest
27
+ - windows-latest
28
+ runs-on : " ${{ matrix.os }}"
29
+ steps :
30
+ - name : Install Rosetta
31
+ if : ${{ matrix.os == 'macos-latest' && matrix.node-version == '14.16' }}
32
+ run : /usr/sbin/softwareupdate --install-rosetta --agree-to-license
33
+ - name : Checkout
34
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
35
+ - name : Setup Node.js
36
+ uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
37
+ with :
38
+ node-version : " ${{ matrix.node-version }}"
39
+ cache : ' yarn'
40
+ architecture : ${{ matrix.os == 'macos-latest' && matrix.node-version == '14.16' && 'x64' || env.RUNNER_ARCH }}
41
+ - name : Install
42
+ run : yarn install --frozen-lockfile
43
+ - name : Test
44
+ run : yarn test
Original file line number Diff line number Diff line change 2
2
3
3
> Flip [ Electron Fuses] ( https://github.com/electron/electron/blob/main/docs/tutorial/fuses.md ) and customize your packaged build of Electron
4
4
5
- [ ![ CircleCI ] ( https://circleci .com/gh/ electron/fuses. svg?style=shield )] ( https://circleci .com/gh/ electron/fuses )
5
+ [ ![ Test ] ( https://github .com/electron/fuses/actions/workflows/test.yml/badge. svg )] ( https://github .com/electron/fuses/actions/workflows/test.yml )
6
6
[ ![ npm version] ( http://img.shields.io/npm/v/@electron/fuses.svg )] ( https://npmjs.org/package/@electron/fuses )
7
7
8
8
## Usage
Original file line number Diff line number Diff line change 9
9
"engines" : {
10
10
"node" : " ^14.15.0 || ^16.10.0 || >=18.0.0"
11
11
},
12
+ "publishConfig" : {
13
+ "provenance" : true
14
+ },
12
15
"scripts" : {
13
16
"build" : " tsc" ,
14
17
"test" : " jest && tsc" ,
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ describe('flipFuses()', () => {
102
102
[ FuseV1Options . EnableCookieEncryption ] : true ,
103
103
} ) ;
104
104
expect ( sentinels ) . toEqual ( 2 ) ;
105
- } ) ;
105
+ } , 120000 ) ; // TODO(dsanders11): Remove timeout once we're no longer running CI under Rosetta
106
106
}
107
107
108
108
describe ( 'strictlyRequireAllFuses' , ( ) => {
You can’t perform that action at this time.
0 commit comments