Skip to content

Commit

Permalink
Merge pull request #73 from hanihusam/remix-vite
Browse files Browse the repository at this point in the history
BREAK: Update All Dependencies
  • Loading branch information
hanihusam authored Nov 18, 2024
2 parents 126296a + 7af843d commit ef9fd20
Show file tree
Hide file tree
Showing 42 changed files with 3,146 additions and 38,490 deletions.
120 changes: 0 additions & 120 deletions .eslintrc.js

This file was deleted.

32 changes: 0 additions & 32 deletions .eslintrc.repo.js

This file was deleted.

50 changes: 20 additions & 30 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,14 @@ jobs:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3

- name: βŽ” Setup node
uses: actions/setup-node@v3
with:
cache: npm
cache-dependency-path: ./package.json
node-version: 18
- name: βŽ” Setup bun
uses: oven-sh/setup-bun@v1

- name: πŸ“₯ Install deps
run: npm install
run: bun install

- name: πŸ”¬ Lint
run: npm run lint
run: bun run lint

typecheck:
name: Κ¦ TypeScript
Expand All @@ -38,18 +34,14 @@ jobs:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3

- name: βŽ” Setup node
uses: actions/setup-node@v3
with:
cache: npm
cache-dependency-path: ./package.json
node-version: 18
- name: βŽ” Setup bun
uses: oven-sh/setup-bun@v1

- name: πŸ“₯ Install deps
run: npm install
run: bun install

- name: πŸ”Ž Type check
run: npm run typecheck --if-present
run: bun run typecheck

# vitest:
# name: ⚑ Vitest
Expand Down Expand Up @@ -121,21 +113,17 @@ jobs:
- name: πŸ„ Copy test env vars
run: cp .env.example .env

- name: βŽ” Setup node
uses: actions/setup-node@v3
with:
cache: npm
cache-dependency-path: ./package.json
node-version: 18
- name: βŽ” Setup bun
uses: oven-sh/setup-bun@v1

- name: πŸ“₯ Install deps
run: npm install
run: bun install

- name: πŸ›  Setup Database
run: npx prisma migrate reset --force

- name: βš™οΈ Build
run: npm run build
run: bun run build

# - name: 🌳 Cypress run
# uses: cypress-io/github-action@v5
Expand All @@ -151,7 +139,9 @@ jobs:
# needs: [lint, typecheck, vitest, cypress, build]
needs: [lint, typecheck, cypress]
# only build/deploy main branch on pushes
if: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && github.event_name == 'push' }}
if:
${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') &&
github.event_name == 'push' }}

steps:
- name: ⬇️ Checkout repo
Expand All @@ -161,23 +151,23 @@ jobs:
uses: SebRollen/[email protected]
id: app_name
with:
file: "fly.toml"
field: "app"
file: 'fly.toml'
field: 'app'

- name: πŸš€ Deploy Staging
if: ${{ github.ref == 'refs/heads/dev' }}
uses: superfly/[email protected]
with:
args:
"deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }} --app
${{ steps.app_name.outputs.value }}-staging"
'deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }} --app
${{ steps.app_name.outputs.value }}-staging'
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

- name: πŸš€ Deploy Production
if: ${{ github.ref == 'refs/heads/main' }}
uses: superfly/[email protected]
with:
args: "deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }}"
args: 'deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }}'
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
Loading

0 comments on commit ef9fd20

Please sign in to comment.