Skip to content

Commit 4624373

Browse files
committed
Removed tests and kept only dev build
1 parent 7ec1102 commit 4624373

2 files changed

Lines changed: 4 additions & 51 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ on:
1616
description: "Build type to run"
1717
options:
1818
- dev
19-
- prod-apk
2019
- all
2120

2221
env:
@@ -31,45 +30,8 @@ jobs:
3130
- name: Skip CI check
3231
run: echo "Proceeding with workflow"
3332

34-
test:
35-
needs: check-skip
36-
runs-on: ubuntu-latest
37-
steps:
38-
- name: 🏗 Checkout repository
39-
uses: actions/checkout@v4
40-
41-
- name: 🏗 Setup Node.js
42-
uses: actions/setup-node@v4
43-
with:
44-
node-version: "20"
45-
cache: "yarn"
46-
47-
- name: 📦 Get yarn cache directory path
48-
id: yarn-cache-dir-path
49-
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
50-
51-
- name: 📦 Setup yarn cache
52-
uses: actions/cache@v3
53-
with:
54-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
55-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
56-
restore-keys: |
57-
${{ runner.os }}-yarn-
58-
59-
- name: 📦 Install dependencies
60-
run: yarn install
61-
62-
- name: 🧪 Run TypeScript check
63-
run: yarn tsc
64-
65-
- name: 🧹 Run ESLint
66-
run: yarn lint
67-
68-
- name: 🎨 Run Prettier check
69-
run: yarn format:check
70-
7133
build-and-deploy:
72-
needs: test
34+
needs: check-skip
7335
if: (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')) || github.event_name == 'workflow_dispatch'
7436
runs-on: ubuntu-latest
7537
steps:
@@ -174,19 +136,10 @@ jobs:
174136
env:
175137
NODE_ENV: development
176138

177-
- name: 📱 Build Production APK
178-
if: github.event.inputs.buildType == 'all' || github.event.inputs.buildType == 'prod-apk' || github.event_name == 'push'
179-
run: |
180-
export NODE_OPTIONS="--openssl-legacy-provider --max_old_space_size=4096"
181-
eas build --platform android --profile production-apk --local --non-interactive --output=./app-prod.apk
182-
env:
183-
NODE_ENV: production
184-
185139
- name: 📦 Upload build artifacts to GitHub
186140
uses: actions/upload-artifact@v4
187141
with:
188142
name: app-builds
189143
path: |
190144
./app-dev.apk
191-
./app-prod.apk
192-
retention-days: 7
145+
retention-days: 7

src/components/containers/shareBtns.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import OnlyIconButton from "@components/inputs/onlyIconButton"
2-
import { sharePost, sharePostToFacebook, sharePostToReddit, sharePostToWhatsapp } from "@utils/otherUtils"
2+
import { sharePost, sharePostToFacebook, sharePostToReddit, sharePostToWhatsapp, shareToClipboard } from "@utils/otherUtils"
33
import { View } from "react-native"
44

55
interface Props {
@@ -26,7 +26,7 @@ export default function ShareBtns({ postId }: Props) {
2626
/>
2727

2828
<OnlyIconButton
29-
func={() => { }}
29+
func={() => { shareToClipboard(postId) }}
3030
icon='link-variant'
3131
/>
3232

0 commit comments

Comments
 (0)