This commit is contained in:
Zoe Roux 2023-01-07 19:51:08 +09:00
parent aa38b34191
commit f5338fc8a8
No known key found for this signature in database
GPG Key ID: B2AB52A2636E5C46
12 changed files with 80 additions and 35 deletions

View File

@ -44,7 +44,7 @@ jobs:
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
with: with:
ref: ${{github.ref}} ref: ${{github.ref}}
check-name: tests check-name: "Back tests"
repo-token: ${{secrets.GITHUB_TOKEN}} repo-token: ${{secrets.GITHUB_TOKEN}}
running-workflow-name: analysis running-workflow-name: analysis
allowed-conclusions: success,skipped,cancelled,neutral,failure allowed-conclusions: success,skipped,cancelled,neutral,failure
@ -53,7 +53,7 @@ jobs:
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
with: with:
ref: ${{github.event.pull_request.head.sha}} ref: ${{github.event.pull_request.head.sha}}
check-name: tests check-name: "Back tests"
repo-token: ${{secrets.GITHUB_TOKEN}} repo-token: ${{secrets.GITHUB_TOKEN}}
running-workflow-name: analysis running-workflow-name: analysis
allowed-conclusions: success,skipped,cancelled,neutral,failure allowed-conclusions: success,skipped,cancelled,neutral,failure

View File

@ -1,4 +1,4 @@
name: Update the documentation name: Documentation
on: on:
push: push:
@ -6,7 +6,8 @@ on:
- master - master
jobs: jobs:
Building: doc:
name: Update the documentation
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1

View File

@ -1,5 +1,10 @@
name: Native build name: Native build
on: push on:
push:
branches:
- master
- next
pull_request:
jobs: jobs:
update: update:
@ -9,6 +14,9 @@ jobs:
run: run:
working-directory: ./front working-directory: ./front
steps: steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Check for EXPO_TOKEN - name: Check for EXPO_TOKEN
run: | run: |
if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then
@ -16,14 +24,12 @@ jobs:
exit 1 exit 1
fi fi
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: 16.x node-version: 16.x
cache: yarn cache: yarn
cache-dependency-path: front/yarn.lock
- name: Setup Expo - name: Setup Expo
uses: expo/expo-github-action@v7 uses: expo/expo-github-action@v7
@ -32,25 +38,18 @@ jobs:
eas-version: latest eas-version: latest
token: ${{ secrets.EXPO_TOKEN }} token: ${{ secrets.EXPO_TOKEN }}
- name: Restore cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- name: Install dependencies - name: Install dependencies
run: yarn install --immutable run: yarn install --immutable
- name: Build Mobile Release - name: Build Mobile Release
run: yarn build:mobile --release-channel=build | tee log.txt run: yarn build:mobile | tee log.txt
- name: Parse Asset URL - name: Parse Asset URL
id: url id: url
run: | run: |
ASSET_URL=$(grep -eo 'https?://expo\.io/artifacts/[^ ]+' log.txt) ASSET_URL=$(grep -oe 'https?://expo\.io/artifacts/[^ ]+' log.txt)
echo The android url is $ASSET_URL echo The android url is $ASSET_URL
echo "::set-output name=assetUrl::$ASSET_URL" echo "assetUrl=$ASSET_URL" >> $GITHUB_OUTPUT
- name: Download APK Asset - name: Download APK Asset
run: wget -O kyoo.apk ${{ steps.url.outputs.assetUrl }} run: wget -O kyoo.apk ${{ steps.url.outputs.assetUrl }}
@ -60,11 +59,10 @@ jobs:
name: kyoo.apk name: kyoo.apk
path: ./front/kyoo.apk path: ./front/kyoo.apk
- name: Upload Release Asset - name: Upload Release Asset
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./example-${{ env.GITHUB_REF_SLUG }}.apk file: ./example-${{ env.GITHUB_REF_SLUG }}.apk
asset_name: example-${{ env.GITHUB_REF_SLUG }}.apk asset_name: example-${{ env.GITHUB_REF_SLUG }}.apk
tag: ${{ github.ref } tag: ${{ github.ref }}

View File

@ -1,5 +1,9 @@
name: Native update name: Native update
on: push on:
push:
branches:
- master
- next
jobs: jobs:
update: update:
@ -24,6 +28,7 @@ jobs:
with: with:
node-version: 16.x node-version: 16.x
cache: yarn cache: yarn
cache-dependency-path: front/yarn.lock
- name: Setup Expo - name: Setup Expo
uses: expo/expo-github-action@v7 uses: expo/expo-github-action@v7
@ -32,17 +37,6 @@ jobs:
eas-version: latest eas-version: latest
token: ${{ secrets.EXPO_TOKEN }} token: ${{ secrets.EXPO_TOKEN }}
- name: Find yarn cache
id: yarn-cache-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- name: Install dependencies - name: Install dependencies
run: yarn install --immutable run: yarn install --immutable

View File

@ -8,6 +8,7 @@ on:
jobs: jobs:
release: release:
name: Release a new version
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View File

@ -8,7 +8,8 @@ on:
jobs: jobs:
build: test:
name: Run Robot Tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View File

@ -8,6 +8,7 @@ on:
jobs: jobs:
tests: tests:
name: Back tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: mcr.microsoft.com/dotnet/sdk:6.0 container: mcr.microsoft.com/dotnet/sdk:6.0
services: services:

View File

@ -58,6 +58,12 @@ const config = {
}, },
splash, splash,
}, },
updates: {
url: "https://u.expo.dev/55de6b52-c649-4a15-9a45-569ff5ed036c",
},
runtimeVersion: {
policy: "sdkVersion",
},
extra: { extra: {
eas: { eas: {
projectId: "55de6b52-c649-4a15-9a45-569ff5ed036c", projectId: "55de6b52-c649-4a15-9a45-569ff5ed036c",

View File

@ -14,6 +14,7 @@
"distribution": "internal" "distribution": "internal"
}, },
"production": { "production": {
"channel": "prod",
"android": { "android": {
"buildType": "apk" "buildType": "apk"
} }

View File

@ -9,7 +9,7 @@
"web": "expo start --web", "web": "expo start --web",
"build": "eas build --profile production --platform android", "build": "eas build --profile production --platform android",
"build:dev": "eas build --profile development --platform android", "build:dev": "eas build --profile development --platform android",
"update": "eas update --auto" "update": "eas update --auto --channel prod"
}, },
"dependencies": { "dependencies": {
"@expo-google-fonts/poppins": "^0.2.2", "@expo-google-fonts/poppins": "^0.2.2",
@ -31,6 +31,7 @@
"expo-router": "^0.0.36", "expo-router": "^0.0.36",
"expo-screen-orientation": "~5.0.1", "expo-screen-orientation": "~5.0.1",
"expo-status-bar": "~1.4.2", "expo-status-bar": "~1.4.2",
"expo-updates": "~0.15.6",
"i18next": "^22.0.6", "i18next": "^22.0.6",
"intl-pluralrules": "^1.3.1", "intl-pluralrules": "^1.3.1",
"moti": "^0.21.0", "moti": "^0.21.0",

View File

@ -11,7 +11,9 @@
"update": "yarn workspace mobile update", "update": "yarn workspace mobile update",
"lint": "eslint ." "lint": "eslint ."
}, },
"eslintIgnore": ["next-env.d.ts"], "eslintIgnore": [
"next-env.d.ts"
],
"workspaces": [ "workspaces": [
"apps/*", "apps/*",
"packages/*" "packages/*"

View File

@ -6739,6 +6739,13 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"expo-eas-client@npm:~0.4.0":
version: 0.4.1
resolution: "expo-eas-client@npm:0.4.1"
checksum: 8d2bd620278d9baba5b65fb42bd18916fcae0883bfc2a02ac72b5318833d8baaccf7be536dcdea1c3a3893793f79dab15c35948450f274b98236db6b491e175c
languageName: node
linkType: hard
"expo-error-recovery@npm:~4.0.1": "expo-error-recovery@npm:~4.0.1":
version: 4.0.1 version: 4.0.1
resolution: "expo-error-recovery@npm:4.0.1" resolution: "expo-error-recovery@npm:4.0.1"
@ -6926,6 +6933,13 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"expo-structured-headers@npm:~3.0.0":
version: 3.0.1
resolution: "expo-structured-headers@npm:3.0.1"
checksum: 3c730146ff3d6beb89967684d58b68dc5feb350600911eb8b0c45820cf13c87b253eb3788dd5c19644df0e3ed091967a2263b8e4459ee4bc62e86ee164ad59ff
languageName: node
linkType: hard
"expo-updates-interface@npm:~0.8.0": "expo-updates-interface@npm:~0.8.0":
version: 0.8.1 version: 0.8.1
resolution: "expo-updates-interface@npm:0.8.1" resolution: "expo-updates-interface@npm:0.8.1"
@ -6935,6 +6949,30 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"expo-updates@npm:~0.15.6":
version: 0.15.6
resolution: "expo-updates@npm:0.15.6"
dependencies:
"@expo/code-signing-certificates": 0.0.5
"@expo/config": ~7.0.2
"@expo/config-plugins": ~5.0.3
"@expo/metro-config": ~0.5.0
arg: 4.1.0
expo-eas-client: ~0.4.0
expo-manifests: ~0.4.0
expo-structured-headers: ~3.0.0
expo-updates-interface: ~0.8.0
fbemitter: ^3.0.0
resolve-from: ^5.0.0
uuid: ^3.4.0
peerDependencies:
expo: "*"
bin:
expo-updates: bin/cli.js
checksum: 8f9dcdc0b1f096cd20d43242af6df96239a4617c33951ea1453a6b160fc11ce5153c667bcecf89151aae90332bbf8fc93e4d2dbae5a194bf124ecc4f04251541
languageName: node
linkType: hard
"expo@npm:*, expo@npm:^47.0.0": "expo@npm:*, expo@npm:^47.0.0":
version: 47.0.11 version: 47.0.11
resolution: "expo@npm:47.0.11" resolution: "expo@npm:47.0.11"
@ -10186,6 +10224,7 @@ __metadata:
expo-router: ^0.0.36 expo-router: ^0.0.36
expo-screen-orientation: ~5.0.1 expo-screen-orientation: ~5.0.1
expo-status-bar: ~1.4.2 expo-status-bar: ~1.4.2
expo-updates: ~0.15.6
i18next: ^22.0.6 i18next: ^22.0.6
intl-pluralrules: ^1.3.1 intl-pluralrules: ^1.3.1
moti: ^0.21.0 moti: ^0.21.0