-
Notifications
You must be signed in to change notification settings - Fork 1
Add CI workflow for linting, testing, and building #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,54 @@ | ||||||
| # GitHub Actions CI: lint -> test -> build -> Slack alert on completion/failure | ||||||
| on: | ||||||
| push: | ||||||
| branches: | ||||||
| - main | ||||||
| - 'release/*' | ||||||
| pull_request: | ||||||
| branches: | ||||||
| - main | ||||||
| schedule: | ||||||
| - cron: '0 2 * * *' # daily at 02:00 UTC | ||||||
|
|
||||||
| name: Global-press CI | ||||||
|
|
||||||
| jobs: | ||||||
| ci: | ||||||
| runs-on: ubuntu-latest | ||||||
| env: | ||||||
| NODE_ENV: production | ||||||
| steps: | ||||||
| - name: Checkout | ||||||
| uses: actions/checkout@v4 | ||||||
|
|
||||||
| - name: Setup Node.js | ||||||
| uses: actions/setup-node@v4 | ||||||
| with: | ||||||
| node-version: '18' | ||||||
| cache: 'npm' | ||||||
|
|
||||||
| - name: Install dependencies | ||||||
| run: npm ci | ||||||
|
|
||||||
| - name: Run lint | ||||||
| run: npm run lint | ||||||
|
|
||||||
xpertforextradeinc marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
| - name: Run tests | ||||||
| run: npm test | ||||||
|
|
||||||
|
Comment on lines
+36
to
+38
|
||||||
| - name: Run tests | |
| run: npm test |
Copilot
AI
Nov 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The npm run build script is not defined in package.json. This will cause the workflow to fail. Add a "build" script to the "scripts" section of package.json, or remove this step if building is not required.
| - name: Build | |
| run: npm run build |
Copilot
AI
Nov 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scripts/slack-alert.js file does not exist in the repository. This step will fail when executed. Create the slack-alert.js script in a scripts/ directory or update the path to point to an existing script.
Uh oh!
There was an error while loading. Please reload this page.