|
8 | 8 | env: |
9 | 9 | CI: true |
10 | 10 | steps: |
11 | | - - uses: actions/checkout@v2 |
| 11 | + - uses: actions/checkout@v4 |
12 | 12 | - run: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* |
13 | | - - name: Setup node 14 |
14 | | - uses: actions/setup-node@v1 |
| 13 | + - name: Setup node 24 |
| 14 | + uses: actions/setup-node@v4 |
15 | 15 | with: |
16 | | - node-version: 14.x |
17 | | - - run: yarn install --frozen-lockfile --check-files |
18 | | - - uses: actions/cache@v1 |
| 16 | + node-version: 24.x |
| 17 | + - name: Install pnpm |
| 18 | + uses: pnpm/action-setup@v4 |
| 19 | + with: |
| 20 | + version: 9.15.0 |
| 21 | + - name: Get pnpm store directory |
| 22 | + shell: bash |
| 23 | + run: | |
| 24 | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV |
| 25 | + - uses: actions/cache@v4 |
| 26 | + name: Setup pnpm cache |
| 27 | + with: |
| 28 | + path: ${{ env.STORE_PATH }} |
| 29 | + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} |
| 30 | + restore-keys: | |
| 31 | + ${{ runner.os }}-pnpm-store- |
| 32 | + - run: pnpm install --frozen-lockfile |
| 33 | + - uses: actions/cache@v4 |
19 | 34 | id: cache-deps |
20 | 35 | with: |
21 | | - token: ${{ github.token }} |
22 | 36 | path: '.' |
23 | 37 | key: ${{ github.sha }}-deps |
24 | 38 | lint: |
25 | 39 | runs-on: ubuntu-latest |
26 | 40 | needs: install-dependencies |
27 | 41 | steps: |
28 | | - - uses: actions/cache@v1 |
| 42 | + - uses: actions/cache@v4 |
29 | 43 | id: restore-deps |
30 | 44 | with: |
31 | 45 | path: '.' |
32 | 46 | key: ${{ github.sha }}-deps |
33 | | - - name: Setup node 14 |
34 | | - uses: actions/setup-node@v1 |
| 47 | + - name: Setup node 24 |
| 48 | + uses: actions/setup-node@v4 |
| 49 | + with: |
| 50 | + node-version: 24.x |
| 51 | + - name: Install pnpm |
| 52 | + uses: pnpm/action-setup@v4 |
35 | 53 | with: |
36 | | - node-version: 14.x |
37 | | - - run: yarn lint |
| 54 | + version: 9.15.0 |
| 55 | + - run: pnpm lint |
38 | 56 | unit-test: |
39 | 57 | runs-on: ubuntu-latest |
40 | 58 | needs: install-dependencies |
41 | 59 | steps: |
42 | | - - uses: actions/cache@v1 |
| 60 | + - uses: actions/cache@v4 |
43 | 61 | id: restore-deps |
44 | 62 | with: |
45 | 63 | path: '.' |
46 | 64 | key: ${{ github.sha }}-deps |
47 | | - - name: Setup node 14 |
48 | | - uses: actions/setup-node@v1 |
| 65 | + - name: Setup node 24 |
| 66 | + uses: actions/setup-node@v4 |
49 | 67 | with: |
50 | | - node-version: 14.x |
51 | | - - run: yarn test |
| 68 | + node-version: 24.x |
| 69 | + - name: Install pnpm |
| 70 | + uses: pnpm/action-setup@v4 |
| 71 | + with: |
| 72 | + version: 9.15.0 |
| 73 | + - run: pnpm test |
52 | 74 | build: |
53 | 75 | runs-on: ubuntu-latest |
54 | 76 | needs: install-dependencies |
55 | 77 | strategy: |
56 | 78 | matrix: |
57 | | - node-version: [14.x] |
| 79 | + node-version: [24.x] |
58 | 80 | steps: |
59 | | - - uses: actions/cache@v1 |
| 81 | + - uses: actions/cache@v4 |
60 | 82 | id: restore-deps |
61 | 83 | with: |
62 | 84 | path: '.' |
63 | 85 | key: ${{ github.sha }} |
64 | 86 | - name: Use Node.js ${{ matrix.node-version }} |
65 | | - uses: actions/setup-node@v1 |
| 87 | + uses: actions/setup-node@v4 |
66 | 88 | with: |
67 | 89 | node-version: ${{ matrix.node-version }} |
68 | | - # HACK(johnrjj) - Rebuild node-sass in case build step runs on a separate machine than the dependency install |
69 | | - - run: npm rebuild node-sass |
70 | | - - run: yarn build:prod |
71 | | - - uses: actions/cache@v1 |
| 90 | + - name: Install pnpm |
| 91 | + uses: pnpm/action-setup@v4 |
| 92 | + with: |
| 93 | + version: 9.15.0 |
| 94 | + - run: pnpm build:prod |
| 95 | + - uses: actions/cache@v4 |
72 | 96 | id: cache-build |
73 | 97 | with: |
74 | 98 | path: '.' |
|
0 commit comments