chore: optimize workflows to avoid building components each time

This commit is contained in:
Mo
2022-06-14 16:00:31 -05:00
parent 703994c16b
commit 01793365bd
400 changed files with 17000 additions and 1544 deletions

View File

@@ -23,7 +23,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- run: yarn install
- run: yarn build:components
- run: yarn compile:components
- name: Setup git config
run: |
git config --global user.name "standardci"

View File

@@ -23,7 +23,7 @@ jobs:
brew install snapcraft
- run: yarn install
- run: yarn build:web:all
- run: yarn build:desktop
- name: SnapArm64
run: |

View File

@@ -24,7 +24,7 @@ jobs:
with:
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn build:web:all
- run: yarn build:desktop
- name: Compile Mac
run: yarn run webpack --config desktop.webpack.prod.js
- name: MacX64
@@ -59,7 +59,7 @@ jobs:
- name: Install FPM
run: sudo gem install fpm -f
- run: yarn install
- run: yarn build:web:all
- run: yarn build:desktop
- name: Compile for AppImage
run: yarn run webpack --config desktop.webpack.prod.js
- name: AppImage
@@ -125,7 +125,7 @@ jobs:
with:
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn build:web:all
- run: yarn build:desktop
- run: yarn run webpack --config desktop.webpack.prod.js
- run: yarn run electron-builder --windows --x64 --ia32 --publish=never

View File

@@ -19,7 +19,7 @@ jobs:
with:
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn build:web:all
- run: yarn build:desktop
- run: yarn run webpack --config desktop.webpack.prod.js
- run: yarn run electron-builder --windows --x64 --ia32 --publish=never

View File

@@ -29,6 +29,7 @@ jobs:
uses: ruby/setup-ruby@v1
- name: Install dependencies
run: yarn install
- run: yarn build:mobile
- name: fastlane
uses: maierj/fastlane-action@v1.4.0
env:
@@ -62,6 +63,7 @@ jobs:
uses: ruby/setup-ruby@v1
- name: Install dependencies
run: yarn install && yarn install:pods
- run: yarn build:mobile
- name: Set ssh connection to Github
uses: webfactory/ssh-agent@v0.4.1
with:

View File

@@ -27,6 +27,7 @@ jobs:
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch keystore.keystore.asc > android/app/keystore.keystore
- name: Install dependencies
run: yarn install
- run: yarn build:mobile
- name: Ruby Setup for Fastlane
uses: ruby/setup-ruby@v1
- name: fastlane
@@ -65,6 +66,7 @@ jobs:
echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4)" >> $GITHUB_ENV
- name: Install dependencies
run: yarn install && yarn install:pods
- run: yarn build:mobile
- name: Set ssh connection to Github
uses: webfactory/ssh-agent@v0.4.1
with:

28
.github/workflows/pr.components.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: Components PR
on:
pull_request:
branches:
- develop
- main
paths:
- packages/components
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Install dependencies
run: yarn install
- name: ESLint
run: yarn lint
- name: Compile components
run: yarn compile:components
- name: Build
run: yarn build:all
- name: Test
run: yarn test

View File

@@ -1,10 +1,12 @@
name: Pull request
name: General PR
on:
pull_request:
branches:
- develop
- main
paths:
- 'packages/!(components)'
jobs:
test:
@@ -19,7 +21,7 @@ jobs:
- name: ESLint
run: yarn lint
- name: Build
run: yarn build
run: yarn build:all
- name: Build Android
run: yarn android:bundle
- name: Test

View File

@@ -21,7 +21,7 @@ jobs:
- name: ESLint
run: yarn lint
- name: Build
run: yarn build
run: yarn build:web-server
- name: Test
run: yarn test

View File

@@ -23,7 +23,7 @@ jobs:
- name: ESLint
run: yarn lint
- name: Build
run: yarn build
run: yarn build:web-server
- name: Test
run: yarn test

View File

@@ -22,7 +22,7 @@ jobs:
- name: ESLint
run: yarn lint
- name: Build
run: yarn build
run: yarn build:web-server
- name: Test
run: yarn test