|
1 | 1 | name: Build + Test |
2 | 2 |
|
3 | | -on: [push, pull_request] |
| 3 | +on: |
| 4 | + push: |
| 5 | + pull_request: |
| 6 | + |
| 7 | +permissions: |
| 8 | + contents: read |
4 | 9 |
|
5 | 10 | jobs: |
6 | | - test: |
7 | | - runs-on: ${{ matrix.os }} |
8 | | - strategy: |
9 | | - matrix: |
10 | | - os: [windows-latest, ubuntu-latest] |
11 | | - node-version: [16.x] |
| 11 | + build: |
| 12 | + runs-on: [ubuntu-latest] |
12 | 13 |
|
13 | | - name: ${{ matrix.os }} (Node.js ${{ matrix.node-version }}) |
| 14 | + name: Build Material Icon Theme |
14 | 15 |
|
15 | 16 | steps: |
16 | 17 | - name: Checkout 🛎 |
17 | | - uses: actions/checkout@v4 |
18 | | - |
19 | | - - name: Setup Node.js ${{ matrix.node-version }} ⚙ |
20 | | - uses: actions/setup-node@v3 |
| 18 | + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
21 | 19 | with: |
22 | | - node-version: ${{ matrix.node-version }} |
23 | | - |
24 | | - - name: Run display server 🖥 |
25 | | - run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb" |
26 | | - shell: bash |
27 | | - if: ${{ success() && matrix.os == 'ubuntu-latest' }} |
| 20 | + persist-credentials: false |
28 | 21 |
|
29 | | - - name: Install node_modules 📦 |
30 | | - run: npm ci |
31 | | - |
32 | | - - name: Cache node_modules 💾 |
33 | | - uses: actions/cache@v3 |
34 | | - env: |
35 | | - cache-name: cache-node-modules |
| 22 | + - name: Setup Platform 🛠 |
| 23 | + uses: oven-sh/setup-bun@123c6c4e2fea3eb7bffaa91a85eb6b3d505bf7af # v2 |
36 | 24 | with: |
37 | | - # npm cache files are stored in `~/.npm` on Linux/macOS |
38 | | - path: ~/.npm |
39 | | - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} |
40 | | - restore-keys: | |
41 | | - ${{ runner.os }}-build-${{ env.cache-name }}- |
42 | | - ${{ runner.os }}-build- |
43 | | - ${{ runner.os }}- |
| 25 | + bun-version: 1.1.13 |
| 26 | + |
| 27 | + - name: Install dependencies 📦 |
| 28 | + run: bun install --frozen-lockfile |
44 | 29 |
|
45 | 30 | - name: Test + Build 🚀 |
46 | 31 | run: | |
47 | | - npm test |
48 | | - npm run vscode:prepublish |
49 | | - env: |
50 | | - DISPLAY: ':99.0' |
| 32 | + bun test |
| 33 | + bun run vscode:prepublish |
0 commit comments