Skip to content

Commit 41030a6

Browse files
committed
chore: update CI configuration to use pnpm caching and remove unnecessary steps for improved efficiency
1 parent 3ce8ec9 commit 41030a6

File tree

1 file changed

+2
-38
lines changed

1 file changed

+2
-38
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,13 @@ jobs:
3333
uses: actions/setup-node@v4
3434
with:
3535
node-version: '18'
36-
cache: 'npm'
36+
cache: 'pnpm'
3737

3838
- name: Setup pnpm
3939
uses: pnpm/action-setup@v2
4040
with:
4141
version: 8
4242

43-
- name: Get pnpm store directory
44-
shell: bash
45-
run: |
46-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
47-
48-
- name: Setup pnpm cache
49-
uses: actions/cache@v3
50-
with:
51-
path: ${{ env.STORE_PATH }}
52-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
53-
restore-keys: |
54-
${{ runner.os }}-pnpm-store-
55-
5643
- name: Install dependencies
5744
run: pnpm install --frozen-lockfile
5845

@@ -108,26 +95,13 @@ jobs:
10895
uses: actions/setup-node@v4
10996
with:
11097
node-version: '18'
111-
cache: 'npm'
98+
cache: 'pnpm'
11299

113100
- name: Setup pnpm
114101
uses: pnpm/action-setup@v2
115102
with:
116103
version: 8
117104

118-
- name: Get pnpm store directory
119-
shell: bash
120-
run: |
121-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
122-
123-
- name: Setup pnpm cache
124-
uses: actions/cache@v3
125-
with:
126-
path: ${{ env.STORE_PATH }}
127-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
128-
restore-keys: |
129-
${{ runner.os }}-pnpm-store-
130-
131105
- name: Install dependencies
132106
run: pnpm install --frozen-lockfile
133107

@@ -142,16 +116,6 @@ jobs:
142116
PAYLOAD_PUBLIC_SERVER_URL: http://localhost:3001
143117
PAYLOAD_PUBLIC_CMS_URL: http://localhost:3001/admin
144118

145-
- name: Start applications
146-
run: |
147-
pnpm start &
148-
sleep 10
149-
env:
150-
DATABASE_URI: postgresql://postgres:postgres@localhost:5432/overland_test
151-
PAYLOAD_SECRET: test-secret-key-for-ci
152-
PAYLOAD_PUBLIC_SERVER_URL: http://localhost:3001
153-
PAYLOAD_PUBLIC_CMS_URL: http://localhost:3001/admin
154-
155119
- name: Run E2E tests
156120
run: pnpm test:e2e
157121
env:

0 commit comments

Comments
 (0)