Skip to content

Commit

Permalink
ci(shared): enable github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sdorra committed Mar 26, 2024
1 parent 53e6440 commit 217e386
Show file tree
Hide file tree
Showing 13 changed files with 802 additions and 130 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize]

jobs:
build:
name: Build and Test
timeout-minutes: 15
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}

steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2

- uses: pnpm/action-setup@v3
with:
version: 8

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build cli
run: pnpm build --filter=cli

- name: Install cli binary
run: pnpm install

- name: Build
run: pnpm build

- name: Install Playwright Browsers
run: pnpx playwright install --with-deps

- name: Test
run: pnpm test
4 changes: 2 additions & 2 deletions integrations/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
"test": "playwright test"
},
"dependencies": {
"@content-collections/next": "0.1.3",
"@content-collections/core": "0.3.1",
"@content-collections/next": "0.1.3",
"next": "14.1.0",
"react": "^18",
"react-dom": "^18"
},
"devDependencies": {
"@playwright/test": "^1.40.1",
"@playwright/test": "^1.42.1",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
Expand Down
4 changes: 2 additions & 2 deletions integrations/qwik/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"devDependencies": {
"@builder.io/qwik": "^1.4.1",
"@builder.io/qwik-city": "^1.4.1",
"@content-collections/vite": "0.2.0",
"@content-collections/core": "0.3.1",
"@content-collections/vite": "0.2.0",
"@playwright/test": "^1.42.1",
"@types/eslint": "^8.56.2",
"@types/node": "^20.11.6",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"@playwright/test": "^1.40.1",
"eslint": "^8.56.0",
"eslint-plugin-qwik": "^1.4.1",
"prettier": "^3.2.4",
Expand Down
2 changes: 1 addition & 1 deletion integrations/remix-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"devDependencies": {
"@content-collections/core": "0.3.1",
"@content-collections/remix-vite": "0.1.0",
"@playwright/test": "^1.40.1",
"@playwright/test": "^1.42.1",
"@remix-run/dev": "^2.5.0",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
Expand Down
4 changes: 2 additions & 2 deletions integrations/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"private": true,
"scripts": {
"dev": "vinxi dev --port 5179",
"test": "playwright test"
"disabled-test": "playwright test"
},
"dependencies": {
"@content-collections/core": "0.3.1",
"@content-collections/solid-start": "0.1.0",
"@playwright/test": "^1.40.1",
"@playwright/test": "^1.42.1",
"@solidjs/start": "^0.4.10",
"solid-js": "^1.8.11",
"vinxi": "^0.1.4"
Expand Down
2 changes: 1 addition & 1 deletion integrations/svelte-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"devDependencies": {
"@content-collections/core": "0.3.1",
"@content-collections/vite": "0.2.0",
"@playwright/test": "^1.40.1",
"@playwright/test": "^1.42.1",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion integrations/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@playwright/test": "^1.40.1",
"@playwright/test": "^1.42.1",
"@types/node": "^20.11.4",
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"author": "Sebastian Sdorra <[email protected]>",
"license": "MIT",
"scripts": {
"commitlint": "commitlint --edit"
"commitlint": "commitlint --edit",
"build": "turbo build",
"test": "turbo test"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
Expand Down
Loading

0 comments on commit 217e386

Please sign in to comment.