Skip to content

Commit

Permalink
make the worflow file effortless
Browse files Browse the repository at this point in the history
- more simplified
- less resource hungry
  • Loading branch information
subhoghoshX committed Jul 29, 2024
1 parent 7b9c92e commit 6e6799e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Format Lint Test
name: CI

on: [pull_request]

jobs:
format:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -14,31 +14,19 @@ jobs:
run: npm ci
- name: Check formatting
run: npm run format

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Lint code
run: npm run lint
- name: Check types
run: npm run typecheck
- name: Build extension
run: npm run build

test:
needs: build
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Build extension
run: npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium
- name: Run tests
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"build": "./build.js",
"watch": "./build.js -w",
"format": "biome format .",
"lint": "biome lint . && tsc --noEmit",
"lint": "biome lint .",
"typecheck": "tsc --noEmit",
"test": "PW_TEST_HTML_REPORT_OPEN='never' npx playwright test",
"format:fix": "biome format --write ."
},
Expand Down

0 comments on commit 6e6799e

Please sign in to comment.