Skip to content

Commit 0e26e9a

Browse files
committed
ci(*): updated workflow for running pnpm
1 parent f27e111 commit 0e26e9a

File tree

1 file changed

+7
-20
lines changed

1 file changed

+7
-20
lines changed

.github/workflows/test.yaml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88
branches:
99
- "**"
1010

11-
env:
12-
SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}}
13-
SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}}
14-
1511
jobs:
1612
test:
1713
runs-on: ubuntu-latest
@@ -23,20 +19,11 @@ jobs:
2319
with:
2420
node-version: '18'
2521
check-latest: true
26-
- name: node_modules cache
27-
id: node_modules_cache
28-
uses: actions/cache@v4
22+
- name: Setup pnpm
23+
uses: pnpm/action-setup@v4
2924
with:
30-
path: ./node_modules
31-
key: ${{ runner.os }}-18-node_modules-${{ hashFiles('package-lock.json') }}
32-
restore-keys: |
33-
${{ runner.os }}-18-node_modules-
34-
- name: NPM install
35-
if: steps.node_modules_cache.outputs.cache-hit != 'true'
36-
run: npm ci
37-
- name: Build & run tests
38-
run: npm run test
39-
- name: Run tests in Saucelabs
40-
run: |
41-
./buildtools/sauce_connect.sh &
42-
./buildtools/run_tests.sh --saucelabs
25+
version: latest
26+
- name: Install dependencies
27+
run: pnpm install --frozen-lockfile
28+
- name: Run tests
29+
run: pnpm test

0 commit comments

Comments
 (0)