Skip to content

Commit 9d707b2

Browse files
authored
ci: switch to GHA (#127)
1 parent 5543c83 commit 9d707b2

File tree

7 files changed

+90
-67
lines changed

7 files changed

+90
-67
lines changed

.circleci/config.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Source code and markdown files should always use LF as line ending.
2+
*.js text eol=lf
3+
*.json text eol=lf
4+
*.md text eol=lf
5+
*.ts text eol=lf
6+
*.yml text eol=lf

.github/workflows/lint.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
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@c32f05c950d4e6f4abd8d1d8a46269525e2dbf55 # v1.0.3
32+
with:
33+
project-id: ${{ secrets.CFA_PROJECT_ID }}
34+
secret: ${{ secrets.CFA_SECRET }}
35+
npm-token: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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.10'
21+
- '18.18'
22+
- '16.20'
23+
- '14.21'
24+
os:
25+
- macos-latest
26+
- ubuntu-latest
27+
- windows-latest
28+
exclude:
29+
- os: macos-latest
30+
node-version: '14.21'
31+
runs-on: "${{ matrix.os }}"
32+
steps:
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+
- name: Install
41+
run: yarn install --frozen-lockfile
42+
- name: Lint
43+
run: yarn lint
44+
- name: Test
45+
run: yarn test:ci

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @electron/fiddle-core
22

3-
[![CircleCI](https://circleci.com/gh/electron/fiddle-core.svg?style=svg)](https://circleci.com/gh/electron/fiddle-core)
3+
[![Test](https://github.com/electron/fiddle-core/actions/workflows/test.yml/badge.svg)](https://github.com/electron/fiddle-core/actions/workflows/test.yml)
44
[![NPM](https://img.shields.io/npm/v/@electron/fiddle-core.svg?style=flat)](https://npmjs.org/package/@electron/fiddle-core)
55

66
Run fiddles from anywhere, on any Electron release

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
"dist",
1515
"README.md"
1616
],
17+
"publishConfig": {
18+
"provenance": true
19+
},
1720
"scripts": {
1821
"build": "tsc -b",
1922
"docs": "api-extractor run --local",

0 commit comments

Comments
 (0)