Skip to content

Commit 2fa72cb

Browse files
committed
Add dependabot, CI for the website and adjustments on the other workflows
1 parent d6a2dee commit 2fa72cb

4 files changed

Lines changed: 110 additions & 0 deletions

File tree

.github/workflows/dependabot.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
groups:
8+
actions-minor:
9+
update-types:
10+
- minor
11+
- patch
12+
13+
- package-ecosystem: "npm"
14+
directory: "/website"
15+
schedule:
16+
interval: "weekly"
17+
groups:
18+
npm-minor:
19+
update-types:
20+
- minor
21+
- patch
22+
23+
- package-ecosystem: "npm"
24+
directory: "/dapp"
25+
schedule:
26+
interval: "weekly"
27+
groups:
28+
npm-minor:
29+
update-types:
30+
- minor
31+
- patch
32+
33+
- package-ecosystem: "cargo"
34+
directory: "/"
35+
schedule:
36+
interval: "weekly"
37+
groups:
38+
cargo-minor:
39+
update-types:
40+
- minor
41+
- patch

.github/workflows/rust.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
name: rust
22

3+
permissions:
4+
contents: read
5+
36
on:
7+
workflow_dispatch:
48
push:
59
branches: [main]
610
pull_request:
11+
paths:
12+
- '!website/**'
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
16+
cancel-in-progress: true
717

818
env:
919
CARGO_TERM_COLOR: always

.github/workflows/tests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
name: RPC Tests
2+
3+
permissions:
4+
contents: read
5+
26
on:
7+
workflow_dispatch:
38
push:
49
branches: [main, release/**]
510
pull_request:
11+
paths:
12+
- '!website/**'
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
16+
cancel-in-progress: true
617

718
jobs:
819
test:

.github/workflows/website.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Linting website
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
workflow_dispatch:
8+
pull_request:
9+
paths:
10+
- 'website/**'
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
website-dapp:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v5
22+
23+
- name: Setup Bun
24+
uses: oven-sh/setup-bun@v2
25+
26+
- name: Get Bun cache directory
27+
id: bun-cache-dir
28+
run: echo "dir=$(bun pm cache)" >> ${GITHUB_OUTPUT}
29+
30+
- name: Cache Bun dependencies
31+
uses: actions/cache@v4
32+
with:
33+
path: |
34+
${{ steps.bun-cache-dir.outputs.dir }}
35+
~/.bun/install/cache
36+
key: ${{ runner.os }}-bun-lint-${{ hashFiles('**/bun.lockb', '**/package.json', '**/bun.lock') }}
37+
restore-keys: |
38+
${{ runner.os }}-bun-lint-
39+
${{ runner.os }}-bun-
40+
41+
- name: Install website dependencies
42+
run: cd website && bun install --frozen-lockfile
43+
44+
- name: Check MDX
45+
run: cd website && bun linter
46+
47+
- name: Build website
48+
run: cd website && bun run build

0 commit comments

Comments
 (0)