Skip to content

Commit

Permalink
ci: init pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
gvieira18 committed Aug 11, 2024
1 parent bb5063e commit ce79dba
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache pnpm modules
id: pnpm-cache
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Install Pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

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

- name: Install dependencies
if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: pnpm install

- name: Check lint
run: pnpm run check:ci
5 changes: 5 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,10 @@
"enabled": true
// Add here things that aren't default
}
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"dev:chrome": "plasmo dev --target=chrome-mv3",
"package": "plasmo package",
"check": "biome check",
"check:fix": "biome check --write"
"check:fix": "biome check --write",
"check:ci": "biome ci ."
},
"dependencies": {
"@plasmohq/messaging": "^0.6.2",
Expand Down

0 comments on commit ce79dba

Please sign in to comment.