Skip to content

Commit

Permalink
Merge pull request #1 from bolanosdev/chore/create_github_workflows
Browse files Browse the repository at this point in the history
create basic github workflows
  • Loading branch information
bolanosdev authored Apr 18, 2024
2 parents 7144d10 + 7234324 commit bac412f
Show file tree
Hide file tree
Showing 12 changed files with 96 additions and 12,001 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: oven-sh/setup-bun@v1
- run: bun i
- run: bun test app

deploy:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: oven-sh/setup-bun@v1

- run: bun i

- run: bun run build

- uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
19 changes: 19 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: pull request
on:
pull_request:
branches: [main]
types: [labeled, opened, synchronize]

env:
TITLE: ${{ github.event.pull_request.title }}

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: oven-sh/setup-bun@v1
- run: bun i
- run: bun test app
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "packages/phoenix"]
path = packages/phoenix
url = [email protected]:bolanosdev/phoenix.git
Empty file added app/app.css
Empty file.
5 changes: 5 additions & 0 deletions app/app.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { expect, test } from "bun:test";

test("should x and y", () => {
expect(true).toBe(true);
});
7 changes: 7 additions & 0 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ import {
ScrollRestoration,
} from "@remix-run/react";

import type { LinksFunction } from "@remix-run/node";
import baselineStylesHref from "@phoenix-ui/baseline/compiled/baseline.css";

export const links: LinksFunction = () => [
{ rel: "stylesheet", href: baselineStylesHref },
];

export function Layout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
Expand Down
7 changes: 5 additions & 2 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { MetaFunction } from "@remix-run/cloudflare";
import { Text } from "@phoenix-ui/text";

export const meta: MetaFunction = () => {
return [
Expand All @@ -13,15 +14,17 @@ export const meta: MetaFunction = () => {
export default function Index() {
return (
<div style={{ fontFamily: "system-ui, sans-serif", lineHeight: "1.8" }}>
<h1>Welcome to Remix (with Vite and Cloudflare)</h1>
<Text colors={{ text: { color: "text-teal" } }}>
Welcome to Remix (with Vite and Cloudflare)
</Text>
<ul>
<li>
<a
target="_blank"
href="https://developers.cloudflare.com/pages/framework-guides/deploy-a-remix-site/"
rel="noreferrer"
>
Cloudflare Pages Docs - Remix guide
Cloudflare Pages Docs{" "}
</a>
</li>
<li>
Expand Down
Binary file added bun.lockb
Binary file not shown.
Loading

0 comments on commit bac412f

Please sign in to comment.