Skip to content

Commit

Permalink
Implements test, build and publish workflow (#39)
Browse files Browse the repository at this point in the history
* Slighlty extended description
* Adds npm test to expo workflow
* Single job
  • Loading branch information
dkastl authored Jan 27, 2020
1 parent 11c04ab commit 53c5b12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/expo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- next

jobs:
setup:
publish:
runs-on: ubuntu-latest

strategy:
Expand All @@ -26,29 +26,18 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

build:
runs-on: ubuntu-latest
needs: setup

steps:
- name: Install, build and test
run: |
npm install
run: npm ci && npm test

publish:
runs-on: ubuntu-latest
needs: build

steps:
- name: Login into Expo
run: npx expo-cli login -u ${{ secrets.EXPO_USERNAME }} -p ${{ secrets.EXPO_PASSWORD }}

- name: Publish to Expo channel "default"
- name: Publish & build with Expo channel "default"
if: endsWith(github.ref, '/master')
run: |
npx expo publish --non-interactive --release-channel default
npx expo build:android -t app-bundle --non-interactive --release-channel default
- name: Publish to Expo channel "next"
- name: Publish & build with Expo channel "next"
if: endsWith(github.ref, '/next')
run: |
npx expo publish --non-interactive --release-channel next
npx expo build:android -t app-bundle --non-interactive --release-channel next
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"android",
"web"
],
"description": "Consento Mobile",
"description": "The first (currently alpha) Consento mobile application.",
"icon": "./assets/icon/logo@16x.png",
"githubUrl": "https://github.com/consento-org/mobile",
"androidStatusBar": {
Expand Down

0 comments on commit 53c5b12

Please sign in to comment.