π Revamp Liker Land to LikeCoin #1392
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint and build | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Get yarn cache | |
id: yarn-cache | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v1 | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install dependencies | |
run: yarn | |
- name: Run ESLint | |
run: yarn lint | |
- name: Compile | |
run: yarn compile | |
- name: Jest | |
run: yarn test | |
build-android: | |
needs: lint | |
if: github.event_name == 'push' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Set up JDK 1.11 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
java-package: jdk | |
- name: Get yarn cache | |
id: yarn-cache | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v1 | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install dependencies | |
run: yarn | |
- name: Compile | |
run: yarn compile | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Download gradle dependencies | |
run: ./gradlew dependencies | |
working-directory: android | |
- name: Set Debug keystore | |
run: echo '/u3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kIERlYnVnMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkt5uICbIbNVEHniMJfQNW9zRd7rXemfDAn3P6K0WP9UVXqRTa1i+GZk2nscWZ3CBhQgdNc3suXEkxOzKzXbhlkKG4IwFiq0v5/g02tFYhAdaW/VIN4dXa/VYh/yYM/s9IZ0pNvFQuYG5OeutT+fZtWHiCFcR04hFSSzUupqrQV+yG4KkddgFc2mH+xc+wMtX8eLmQNmPLeHe6ScAFbDoYzhd2/u2m4fcVQFKiio1WRnRfRVjBbbmsefuAkpxjIkHCJJiQH/UQ95H7/LaSNd0eSsg35MhgEPfmV3NQjdpgMYr/S0jw0+4vi5wrZaGJXgKDuipRUly1E2xJfCG3+nRYQIDAQABoyEwHzAdBgNVHQ4EFgQUC/n+OInSipxY8MEKtw5DKNgj8yAwDQYJKoZIhvcNAQEFBQADggEBAF/SdhW/zmMYTRJQwbkRdfC84vnETnrnd3+NhcnhshU9PRAGa7ABmiwKbX48Atvf93bWtv8nLrz0aCWYaKQMDnfUMEVee8/Duf8vT3qKkxt1sFK79CRfMeKOD0kQGKt+l9f7jh1z0xLNCNyW+53Tk5yi4dat9lz/SljZ7JFq6gbUO1JD+tWc8RRuPHGrZtMk8BKTWjFOlq/4G67Bg8g3kPmahtq1a1vFsm0WlLw1XkKQ7ALtuhFdV7vdZaiw5Gk0VrWsKjoHpER+XXrU3p38ipnFPNTubC5lub/exomujiMZ1ky4OmMIohh+MMA/7vaHcY1JA+VAA6mgtX9429moiSpJHNfTl/MPnoJZYANHJ0BedwjxBQ==' | base64 -d > android/app/debug.keystore | |
- name: Build Android debug | |
run: ./gradlew assembleDebug | |
working-directory: android | |
- name: Archive APK | |
uses: actions/upload-artifact@v1 | |
with: | |
name: apk | |
path: android/app/build/outputs/apk |