Skip to content

Commit

Permalink
ci:setup github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremycolin committed Aug 31, 2024
1 parent baab19a commit dc5fa5f
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
pull_request:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "22"

- name: List files in the repository
run: |
ls ${{ github.workspace }}
- name: go to correctdir
run: cd packages/website-analyzer-wcxs

- name: List files in the repository aftere cd
run: |
ls ${{ github.workspace }}
- name: Install dependencies
run: pnpm install

- name: Run CI
run: pnpm run build
14 changes: 13 additions & 1 deletion packages/website-analyzer-wc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,17 @@
"rollup-plugin-import-css": "^3.5.1",
"tslib": "^2.7.0",
"typescript": "^5.5.4"
}
},
"homepage": "https://github.com/jeremycolin/website-analyzer-wc/",
"bugs": {
"url": "https://github.com/jeremycolin/website-analyzer-wc/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/jeremycolin/website-analyzer-wc.git"
},
"files": [
"dist",
"../../README.md"
]
}

0 comments on commit dc5fa5f

Please sign in to comment.