Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Dec 12, 2024
1 parent 272e8c7 commit a5b9af3
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 421 deletions.
8 changes: 0 additions & 8 deletions .devcontainer/devcontainer.json

This file was deleted.

5 changes: 0 additions & 5 deletions .devcontainer/post-create.sh

This file was deleted.

59 changes: 5 additions & 54 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,62 +9,13 @@ jobs:
prettier:
name: Prettier
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
bun-version: latest
- name: Install dependencies
run: pnpm install --frozen-lockfile
run: bun install
- name: Run prettier
run: pnpm run fmt
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply formatting changes
branch: ${{ github.head_ref }}

playwright-tests:
name: Playwright tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- uses: actions/cache@v3
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Playwright dependencies
run: |
pnpm exec playwright install --with-deps
- name: Run tests
run: |
pnpm exec playwright test
run: bun run fmt:check
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

<div align="center">

<h1 style="font-size: 2.5rem; font-weight: bold;">Project Title</h1>
<h1 style="font-size: 2.5rem; font-weight: bold;">Public Goods News Curation</h1>

<p>
<strong>This is a basic project template for new Build DAO projects</strong>
<strong>a bot to curate public goods bot to streamline public goods</strong>
</p>

</div>
Expand All @@ -30,27 +30,27 @@
### Installing dependencies

```bash
pnpm install
bun install
```

### Running the app

First, run the development server:

```bash
pnpm run dev
bun run dev
```

### Building for production

```bash
pnpm run build
bun run build
```

### Running tests

```bash
pnpm run test
bun run test
```

See the full [testing guide](./playwright-tests/README.md).
Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"name": "builddao-project-template",
"name": "public-goods-news",
"version": "0.0.1",
"homepage": "/",
"scripts": {
"fmt": "prettier --write '**/*.{js,jsx,ts,tsx,json}'",
"fmt:check": "prettier --check '**/*.{js,jsx,ts,tsx,json}'",
"test": "npx playwright test",
"test:ui": "npx playwright test --ui"
"fmt:check": "prettier --check '**/*.{js,jsx,ts,tsx,json}'"
},
"browserslist": {
"production": [
Expand All @@ -21,7 +19,6 @@
]
},
"devDependencies": {
"@playwright/test": "^1.46.1",
"prettier": "^3.3.3"
}
}
84 changes: 0 additions & 84 deletions playwright-tests/README.md

This file was deleted.

27 changes: 0 additions & 27 deletions playwright-tests/storage-states/admin-connected.json

This file was deleted.

27 changes: 0 additions & 27 deletions playwright-tests/storage-states/wallet-connected.json

This file was deleted.

10 changes: 0 additions & 10 deletions playwright-tests/storage-states/wallet-not-connected.json

This file was deleted.

18 changes: 0 additions & 18 deletions playwright-tests/tests/example.spec.ts

This file was deleted.

Loading

0 comments on commit a5b9af3

Please sign in to comment.