generated from resir014/nextjs-typescript-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from hanihusam/remix-vite
BREAK: Update All Dependencies
- Loading branch information
Showing
42 changed files
with
3,146 additions
and
38,490 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 }} |
Oops, something went wrong.