Skip to content

Commit

Permalink
Merge pull request #15 from DatepollSystems/WR-30-tests-before-publish
Browse files Browse the repository at this point in the history
WR-30 do test before publish lane
  • Loading branch information
kaulex99 committed Aug 1, 2023
2 parents 41b65a4 + d77f88b commit b2dd8d3
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ on:
- 'Gemfile'
- 'Gemfile.lock'

jobs:
jobs:
publish:
runs-on: macos-latest
needs: test
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -26,6 +27,15 @@ jobs:
ruby-version: '3.2.1'
bundler-cache: true

- name: Setup xcodegen and init xcode project
uses: xavierLowmiller/xcodegen-action@1.1.2
with:
spec: project.yml
use-cache: true

- name: Run tests with fastlane
run: bundle exec fastlane test

- name: Extract secrets
run: |
cd fastlane
Expand All @@ -42,12 +52,6 @@ jobs:
username: ${{ secrets.NETRC_USERNAME }}
password: ${{ secrets.NETRC_TOKEN }}

- name: Setup xcodegen and init xcode project
uses: xavierLowmiller/xcodegen-action@1.1.2
with:
spec: project.yml
use-cache: true

- name: Publish to TestFlight
run: bundle exec fastlane releaseWaiterRobot_${{ github.ref_name }}
env:
Expand Down

0 comments on commit b2dd8d3

Please sign in to comment.