Skip to content

Commit 83368a2

Browse files
authored
Merge pull request #1 from happyprime/task/add-workflows
Add workflow, dependabot files
2 parents 0e6cb7f + dfa928c commit 83368a2

4 files changed

Lines changed: 54 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
timezone: America/Los_Angeles
8+
day: thursday
9+
open-pull-requests-limit: 99

.github/workflows/issues.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Add new issues to Happy Prime project
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
8+
jobs:
9+
add-to-project:
10+
uses: happyprime/workflows/.github/workflows/issues.yml@trunk
11+
secrets: inherit

.github/workflows/tests.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: JavaScript tests
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v6
11+
- uses: actions/setup-node@v6
12+
with:
13+
node-version: 24
14+
cache: npm
15+
- run: npm ci
16+
- run: npm test

.github/workflows/verify-build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Verify build (Node 24)
2+
3+
on: pull_request
4+
5+
# The GITHUB_TOKEN used by Dependabot has read-only permissions by default. We
6+
# provide write permissions to this workflow so that comments can be left on
7+
# the pull request.
8+
#
9+
# @see https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#changing-github_token-permissions
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
14+
jobs:
15+
call-workflow:
16+
uses: happyprime/workflows/.github/workflows/verify-build.yml@trunk
17+
with:
18+
node-version: 24

0 commit comments

Comments
 (0)