Skip to content

add uptime badge

add uptime badge #45

Workflow file for this run

name: πŸ“± Mobile
on:
push:
branches:
- main
- dev
pull_request: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: write
contents: read
jobs:
build-and-test:
name: Build and Test
uses: ./.github/workflows/shared-ci.yml
with:
node-version: '20'
# vitest:
# name: ⚑ Vitest
# runs-on: ubuntu-22.04
# steps:
# - name: ⬇️ Checkout repo
# uses: actions/checkout@v4
# - name: βŽ” Setup node
# uses: actions/setup-node@v4
# with:
# node-version: 20
# - name: πŸ“₯ Download deps
# uses: bahmutov/npm-install@v1
# - name: πŸ„ Copy test env vars
# run: cp .env.example .env
# - name: πŸ–Ό Build icons
# run: npm run build:icons
# - name: ⚑ Run vitest
# run: npm run test -- --coverage
# playwright:
# name: 🎭 Playwright
# runs-on: ubuntu-22.04
# timeout-minutes: 60
# steps:
# - name: ⬇️ Checkout repo
# uses: actions/checkout@v4
# - name: πŸ„ Copy test env vars
# run: cp .env.example .env
# - name: βŽ” Setup node
# uses: actions/setup-node@v4
# with:
# node-version: 20
# - name: πŸ“₯ Download deps
# uses: bahmutov/npm-install@v1
# - name: πŸ“₯ Install Playwright Browsers
# run: npm run test:e2e:install
# - name: πŸ›  Setup Database
# run: npx prisma migrate deploy
# - name: 🏦 Cache Database
# id: db-cache
# uses: actions/cache@v3
# with:
# path: prisma/data.db
# key:
# db-cache-schema_${{ hashFiles('./prisma/schema.prisma')
# }}-migrations_${{ hashFiles('./prisma/migrations/*/migration.sql')
# }}
# - name: 🌱 Seed Database
# if: steps.db-cache.outputs.cache-hit != 'true'
# run: npx prisma db seed
# env:
# MINIMAL_SEED: true
# - name: πŸ— Build
# run: npm run build
# - name: 🎭 Playwright tests
# run: npx playwright test
# - name: πŸ“Š Upload report
# uses: actions/upload-artifact@v3
# if: always()
# with:
# name: playwright-report
# path: playwright-report/
# retention-days: 30
deploy:
name: πŸš€ Deploy Mobile
runs-on: ubuntu-22.04
needs: [build-and-test]
environment: πŸ“± Mobile - Production
concurrency: Mobile - Production
# only build/deploy branches on pushes
if: ${{ github.event_name == 'push' }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4