Skip to content

Chore/upgrade remix version #48

Chore/upgrade remix version

Chore/upgrade remix version #48

Workflow file for this run

name: 🚀 Deploy
on:
push:
branches:
- main
- dev
pull_request: {}
permissions:
actions: write
contents: read
jobs:
lint:
name: ⬣ ESLint
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version: 22
- name: 📥 Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.6.0
- name: 📥 Download deps
run: pnpm install --frozen-lockfile
- name: Setup Biome
uses: biomejs/[email protected]
- name: 🔬 Lint
run: pnpm lint
typecheck:
name: ʦ TypeScript
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version: 22
- name: 📥 Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.6.0
- name: 📥 Download deps
run: pnpm install --frozen-lockfile
- name: 🔎 Type check
run: pnpm run typecheck --if-present
# vitest:
# name: ⚡ Vitest
# runs-on: ubuntu-latest
# steps:
# - name: 🛑 Cancel Previous Runs
# uses: styfle/[email protected]
# - name: ⬇️ Checkout repo
# uses: actions/checkout@v3
# - name: ⎔ Setup node
# uses: actions/setup-node@v3
# with:
# node-version: 16
# - name: 📥 Install pnpm
# uses: pnpm/action-setup@v2
# with:
# version: 6.32.9
# - name: 📥 Download deps
# run: pnpm install --frozen-lockfile
# - name: ⚡ Run vitest
# run: pnpm run test -- --coverage
# cypress:
# name: ⚫️ Cypress
# runs-on: ubuntu-latest
# steps:
# - name: 🛑 Cancel Previous Runs
# uses: styfle/[email protected]
# - name: ⬇️ Checkout repo
# uses: actions/checkout@v3
# - name: 🏄 Copy test env vars
# run: cp .env.example .env
# - name: ⎔ Setup node
# uses: actions/setup-node@v3
# with:
# node-version: 16
# - name: 📥 Install pnpm
# uses: pnpm/action-setup@v2
# with:
# version: 6.32.9
# - name: 📥 Download deps
# run: pnpm install --frozen-lockfile
# - name: 🛠 Setup Database
# run: pnpm prisma migrate reset --force
# - name: ⚙️ Build
# run: pnpm run build
# - name: 🌳 Cypress run
# uses: cypress-io/github-action@v5
# with:
# start: pnpm run start:mocks
# wait-on: "http://localhost:8811"
# env:
# PORT: "8811"
build:
name: 🐳 Build
# only build/deploy main branch on pushes
if: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && github.event_name == 'push' }}
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: 👀 Read app name
uses: SebRollen/[email protected]
id: app_name
with:
file: "fly.toml"
field: "app"
- name: 🐳 Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# Setup cache
- name: ⚡️ Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |