Skip to content

Commit 3f6ffd8

Browse files
author
carlos bolanos
committed
create basic github workflows
1 parent 7144d10 commit 3f6ffd8

12 files changed

+91
-12001
lines changed

.github/workflows/master.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
permissions: {}
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
submodules: true
18+
- uses: oven-sh/setup-bun@v1
19+
- run: bun i
20+
- run: bun test app
21+
22+
deploy:
23+
runs-on: ubuntu-latest
24+
needs: build
25+
steps:
26+
- uses: actions/checkout@v4
27+
with:
28+
submodules: true
29+
- uses: oven-sh/setup-bun@v1
30+
- run: bun i
31+
- run: bun run build

.github/workflows/pr.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: pull request
2+
on:
3+
pull_request:
4+
branches: [main]
5+
types: [labeled, opened, synchronize]
6+
7+
env:
8+
TITLE: ${{ github.event.pull_request.title }}
9+
10+
jobs:
11+
validate:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
submodules: true
17+
- uses: oven-sh/setup-bun@v1
18+
- run: bun i
19+
- run: bun test app

.gitmodules

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "phoenix"]
2+
path = phoenix
3+
url = git@github.com:bolanosdev/phoenix.git
4+
[submodule "packages/phoenix"]
5+
path = packages/phoenix
6+
url = git@github.com:bolanosdev/phoenix.git

app/app.css

Whitespace-only changes.

app/app.test.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { expect, test } from "bun:test";
2+
3+
test("should x and y", () => {
4+
expect(true).toBe(true);
5+
});

app/root.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ import {
66
ScrollRestoration,
77
} from "@remix-run/react";
88

9+
import type { LinksFunction } from "@remix-run/node";
10+
import baselineStylesHref from "@phoenix-ui/baseline/compiled/baseline.css";
11+
12+
export const links: LinksFunction = () => [
13+
{ rel: "stylesheet", href: baselineStylesHref },
14+
];
15+
916
export function Layout({ children }: { children: React.ReactNode }) {
1017
return (
1118
<html lang="en">

app/routes/_index.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { MetaFunction } from "@remix-run/cloudflare";
2+
import { Text } from "@phoenix-ui/text";
23

34
export const meta: MetaFunction = () => {
45
return [
@@ -13,15 +14,17 @@ export const meta: MetaFunction = () => {
1314
export default function Index() {
1415
return (
1516
<div style={{ fontFamily: "system-ui, sans-serif", lineHeight: "1.8" }}>
16-
<h1>Welcome to Remix (with Vite and Cloudflare)</h1>
17+
<Text colors={{ text: { color: "text-teal" } }}>
18+
Welcome to Remix (with Vite and Cloudflare)
19+
</Text>
1720
<ul>
1821
<li>
1922
<a
2023
target="_blank"
2124
href="https://developers.cloudflare.com/pages/framework-guides/deploy-a-remix-site/"
2225
rel="noreferrer"
2326
>
24-
Cloudflare Pages Docs - Remix guide
27+
Cloudflare Pages Docs{" "}
2528
</a>
2629
</li>
2730
<li>

bun.lockb

383 KB
Binary file not shown.

0 commit comments

Comments
 (0)