Skip to content

Commit a0eb287

Browse files
authored
chore: update GHA workflow and remove circleci [DX-242] (#11)
* chore: update GHA workflow and remove circleci * chore: update lock file * chore: remove codeql job * chore: add prettier as check
1 parent 9d6a500 commit a0eb287

File tree

6 files changed

+1787
-87
lines changed

6 files changed

+1787
-87
lines changed

.circleci/config.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.contentful/vault-secrets.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/workflows/pr-build.yml renamed to .github/workflows/build.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
name: PR Build Check
1+
name: Build
22

33
on:
4-
pull_request:
5-
branches: [main]
4+
workflow_call:
65

76
jobs:
87
build:
@@ -18,7 +17,13 @@ jobs:
1817
cache: 'npm'
1918

2019
- name: Install dependencies
21-
run: npm install
20+
run: npm ci
2221

2322
- name: Run build
2423
run: npm run build
24+
25+
- name: Save Build folders
26+
uses: actions/cache/save@v4
27+
with:
28+
path: build/
29+
key: build-cache-${{ github.run_id }}-${{ github.run_attempt }}

.github/workflows/check.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Run Checks
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
lint:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: '22'
17+
cache: 'npm'
18+
19+
- name: Install dependencies
20+
run: npm ci
21+
22+
- name: Restore the build folders
23+
uses: actions/cache/restore@v4
24+
with:
25+
path: build/
26+
key: build-cache-${{ github.run_id }}-${{ github.run_attempt }}
27+
28+
- name: Run Prettier
29+
run: npx pretty-quick --check
30+
31+
- name: Run linting
32+
run: npm run lint

.github/workflows/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ['*']
6+
pull_request:
7+
branches: ['*']
8+
9+
jobs:
10+
build:
11+
uses: ./.github/workflows/build.yml
12+
13+
check:
14+
needs: build
15+
uses: ./.github/workflows/check.yml

0 commit comments

Comments
 (0)