-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(): add ci actions for tsc, lint for pull request to master | add build & deploy ci action for closed pr's
- Loading branch information
Showing
16 changed files
with
479 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: 'Setup Node and Install Dependencies' | ||
description: 'Setup Node.js and install dependencies' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '22' | ||
|
||
- name: Cache Node.js modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.yarn | ||
~/.cache | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Install dependencies | ||
shell: bash | ||
run: yarn install --frozen-lockfile |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: CI Pipeline | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
types: | ||
- closed | ||
|
||
jobs: | ||
tsc: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Setup Node and Install Dependencies | ||
uses: ./.github/actions/setup-node | ||
- name: Run TypeScript compiler | ||
run: yarn run tsc | ||
lint: | ||
runs-on: ubuntu-latest | ||
needs: tsc | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Setup Node and Install Dependencies | ||
uses: ./.github/actions/setup-node | ||
- name: Run Linting | ||
run: yarn run lint | ||
build-ios: | ||
runs-on: macos-latest | ||
needs: [tsc, lint] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.3.0' | ||
- name: Setup Node and Install Dependencies | ||
uses: ./.github/actions/setup-node | ||
- name: Install Fastlane | ||
run: | | ||
cd ios | ||
rm -rf Gemfile.lock | ||
gem install bundler -v 2.4.22 | ||
bundle install | ||
- name: Install Pods | ||
run: | | ||
cd ios | ||
pod install | ||
- name: Run Fastlane Lane | ||
run: | | ||
cd ios | ||
bundle exec fastlane certificates && bundle exec fastlane deploy | ||
env: | ||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | ||
MATCH_USERNAME: ${{ secrets.MATCH_USERNAME }} | ||
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }} | ||
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }} | ||
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }} | ||
GIT_AUTHORIZATION: ${{ secrets.GIT_AUTHORIZATION }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CI Pipeline | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
tsc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Setup Node and Install Dependencies | ||
uses: ./.github/actions/setup-node | ||
- name: Run TypeScript compiler | ||
run: yarn run tsc | ||
lint: | ||
runs-on: ubuntu-latest | ||
needs: tsc | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Setup Node and Install Dependencies | ||
uses: ./.github/actions/setup-node | ||
- name: Run Linting | ||
run: yarn run lint | ||
build: | ||
runs-on: ubuntu-latest | ||
needs: [tsc, lint] | ||
steps: | ||
- name: Build app with fastlane | ||
run: echo Add fastlane lane for build only without deploy step |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "fastlane", '~> 2.224.0' | ||
gem "dotenv" |
Oops, something went wrong.