Skip to content

ci: add workflow to run tests on GHA #1743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,19 +201,43 @@ jobs:
workflows:
build-and-test:
jobs:
- lint
- lint:
filters:
tags:
only:
- /^v.*/
branches:
ignore: /.*/
- mac-test:
matrix:
parameters:
arch: [ x64, arm64 ]
filters:
tags:
only:
- /^v.*/
branches:
ignore: /.*/
- win-test:
matrix:
parameters:
arch: [ x64 ]
filters:
tags:
only:
- /^v.*/
branches:
ignore: /.*/
- linux-test:
matrix:
parameters:
arch: [ x64 ]
filters:
tags:
only:
- /^v.*/
branches:
ignore: /.*/
- mac-build:
context: fiddle-release
matrix:
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Test

on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_call:

permissions:
contents: read

jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
arch:
- x64
os:
- macos-latest
- ubuntu-latest
- windows-latest
include:
- os: macos-latest
arch: arm64
runs-on: "${{ matrix.os }}"
steps:
- run: git config --global core.autocrlf input
- name: Install Rosetta
if: ${{ matrix.os == 'macos-latest' && matrix.arch == 'x64' }}
run: /usr/sbin/softwareupdate --install-rosetta --agree-to-license
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22.17.x'
cache: 'yarn'
architecture: ${{ matrix.os == 'macos-latest' && matrix.arch == 'x64' && 'x64' || env.RUNNER_ARCH }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- run: yarn run contributors
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: yarn run electron-releases
- name: Lint and format
run: yarn run lint && yarn run format
- name: Test
run: yarn tsc && yarn test:ci
Loading