Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Update .yml workflow files #5

Merged
merged 16 commits into from
Mar 5, 2023
1 change: 1 addition & 0 deletions .github/workflows/flask.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
test-flask:
runs-on: ubuntu-latest
timeout-minutes: 20

defaults:
run:
Expand Down
54 changes: 28 additions & 26 deletions .github/workflows/mobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
jobs:
build-android:
runs-on: ubuntu-latest
timeout-minutes: 20
# env:
# DSN: ${{ vars.DSN }}

Expand Down Expand Up @@ -44,36 +45,37 @@ jobs:



build-ios:
runs-on: macos-latest
# env:
# DSN: ${{ vars.DSN }}
# build-ios:
# runs-on: macos-latest
# timeout-minutes: 20
# # env:
# # DSN: ${{ vars.DSN }}

defaults:
run:
working-directory: ./client
# defaults:
# run:
# working-directory: ./client

steps:
- name: Checkout code
uses: actions/checkout@v3
# steps:
# - name: Checkout code
# uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
# - name: Setup Node.js
# uses: actions/setup-node@v2
# with:
# node-version: '14'

- name: Install dependencies
run: yarn install
# - name: Install dependencies
# run: yarn install

- name: Build iOS app
run: cd ios && pod install && xcodebuild clean archive -workspace client.xcworkspace -scheme client -archivePath client.xcarchive CODE_SIGNING_ALLOWED=NO | xcpretty
# - name: Build iOS app
# run: cd ios && pod install && xcodebuild clean archive -workspace client.xcworkspace -scheme client -archivePath client.xcarchive CODE_SIGNING_ALLOWED=NO | xcpretty

- name: Run tests
run: npm run test
# - name: Run tests
# run: npm run test

- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: StyleEase iOS Release
path: ios/build/Release-iphoneos/client.ipa
if-no-files-found: 'warn'
# - name: Archive artifacts
# uses: actions/upload-artifact@v3
# with:
# name: StyleEase iOS Release
# path: ios/build/Release-iphoneos/client.ipa
# if-no-files-found: 'warn'