Skip to content

Commit

Permalink
fix pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
baruchiro committed Sep 6, 2024
1 parent 46e9b28 commit 193b194
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 22 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build

on:
workflow_dispatch:
push:
branches:
- master
paths-ignore:
- '.github/**'
- '!.github/workflows/build.yml'
- '!.github/workflows/lint.yml'
- '!.github/workflows/ci.yml'
- '!.github/workflows/release.yml'
- '**.md'
- .editorconfig
- .gitignore
- '.idea/**'
- '.vscode/**'
pull_request:
paths-ignore:
- '.github/**'
- '!.github/workflows/build.yml'
- '!.github/workflows/lint.yml'
- '!.github/workflows/ci.yml'
- '!.github/workflows/release.yml'
- '**.md'
- .editorconfig
- .gitignore
- '.idea/**'
- '.vscode/**'

jobs:
build:
strategy:
fail-fast: true
matrix:
os:
- macos-latest
# - ubuntu-latest
# - windows-latest

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'yarn'
- name: Install dependencies
run: yarn
- name: Build
run: yarn compile


14 changes: 5 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# This workflow is the entry point for all CI processes.
# It is from here that all other workflows are launched.
name: CI

on:
workflow_dispatch:
push:
branches:
- main
- 'renovate/**'
- master
paths-ignore:
- '.github/**'
- '!.github/workflows/ci.yml'
Expand Down Expand Up @@ -39,11 +40,6 @@ jobs:
uses: ./.github/workflows/typechecking.yml
tests:
uses: ./.github/workflows/tests.yml
# draft_release:
# permissions:
# contents: write # Allows this job to create releases
# with:
# dry-run: ${{ github.event_name != 'push' || github.ref_name != 'main' }}
# needs: [ typechecking, tests ]
# uses: ./.github/workflows/release.yml
build:
uses: ./.github/workflows/build.yml

4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Lint

on:
workflow_dispatch:
push:
Expand Down Expand Up @@ -60,4 +62,4 @@ jobs:
node-version-file: '.node-version'

- run: yarn add prettier
- run: npx prettier --check "**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue}"
- run: yarn format:check
9 changes: 0 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,6 @@ on:
paths-ignore:
- 'nuxt/**'

# workflow_call:
# inputs:
# dry-run:
# description: 'Compiles the app but not upload artifacts to distribution server'
# # TODO: default: false
# default: true
# required: false
# type: boolean

concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"typecheck:renderer": "tsc --noEmit -p packages/renderer/tsconfig.json",
"typecheck": "yarn typecheck:main && yarn typecheck:preload && yarn typecheck:renderer",
"postinstall": "cross-env ELECTRON_RUN_AS_NODE=1 electron scripts/update-electron-vendors.js",
"format": "prettier --write \"**/*.{js,mjs,cjs,ts,mts,cts,tsx,json}\""
"format": "prettier --write \"**/*.{js,mjs,cjs,ts,mts,cts,tsx,json}\"",
"format:check": "prettier --check \"**/*.{js,mjs,cjs,ts,mts,cts,tsx,json}\""
},
"devDependencies": {
"@semantic-release/commit-analyzer": "^13.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/components/accounts/Importers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
AccountStatus,
ModalStatus,
AccountType as TypeOfAccount,
type Account as AccountType
type Account as AccountType,
} from '../../types';
import Account, { type ActionButton } from './Account';
import NewAccount from './NewAccount';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const EditYnabExporter = ({ handleSave, exporterConfig }: EditYnabExporterProps)
});
};

const handleOptionChangeEvent = (propertyName: keyof YnabConfig["options"], event: React.ChangeEvent<HTMLInputElement>) => {
const handleOptionChangeEvent = (propertyName: keyof YnabConfig['options'], event: React.ChangeEvent<HTMLInputElement>) => {
updateOptionsState({ [propertyName]: event.target.value });
};

Expand Down

0 comments on commit 193b194

Please sign in to comment.