chore: optimize workflows to avoid building components each time
This commit is contained in:
2
.github/workflows/components.publish.yml
vendored
2
.github/workflows/components.publish.yml
vendored
@@ -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"
|
||||
|
||||
2
.github/workflows/desktop.release.proto.yml
vendored
2
.github/workflows/desktop.release.proto.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
brew install snapcraft
|
||||
|
||||
- run: yarn install
|
||||
- run: yarn build:web:all
|
||||
- run: yarn build:desktop
|
||||
|
||||
- name: SnapArm64
|
||||
run: |
|
||||
|
||||
6
.github/workflows/desktop.release.reuse.yml
vendored
6
.github/workflows/desktop.release.reuse.yml
vendored
@@ -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
|
||||
|
||||
|
||||
2
.github/workflows/desktop.windows.sign.yml
vendored
2
.github/workflows/desktop.windows.sign.yml
vendored
@@ -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
|
||||
|
||||
|
||||
2
.github/workflows/mobile.release.dev.yml
vendored
2
.github/workflows/mobile.release.dev.yml
vendored
@@ -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:
|
||||
|
||||
2
.github/workflows/mobile.release.prod.yml
vendored
2
.github/workflows/mobile.release.prod.yml
vendored
@@ -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
28
.github/workflows/pr.components.yml
vendored
Normal 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
|
||||
6
.github/workflows/pr.yml
vendored
6
.github/workflows/pr.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/web.release.beta.yml
vendored
2
.github/workflows/web.release.beta.yml
vendored
@@ -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
|
||||
|
||||
|
||||
2
.github/workflows/web.release.dev.yml
vendored
2
.github/workflows/web.release.dev.yml
vendored
@@ -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
|
||||
|
||||
|
||||
2
.github/workflows/web.release.prod.yml
vendored
2
.github/workflows/web.release.prod.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user