|
3 | 3 | pull_request: |
4 | 4 | branches: |
5 | 5 | - master |
| 6 | +# The token of a run only reads: code that a pull request runs cannot push or start a release with it |
| 7 | +permissions: |
| 8 | + contents: read |
6 | 9 | jobs: |
7 | 10 | size: |
8 | 11 | runs-on: ubuntu-latest |
9 | 12 | name: size-limit |
10 | 13 | steps: |
11 | 14 | - name: Checkout the repository |
12 | | - uses: actions/checkout@v5 |
| 15 | + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
13 | 16 | - name: Install pnpm |
14 | | - uses: pnpm/action-setup@v4 |
| 17 | + uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 |
15 | 18 | with: |
16 | | - version: 10 |
| 19 | + version: 12 |
17 | 20 | - name: Install Node.js |
18 | | - uses: actions/setup-node@v6 |
| 21 | + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 |
19 | 22 | with: |
20 | | - node-version: 22 |
| 23 | + node-version-file: .tool-versions |
21 | 24 | cache: 'pnpm' |
| 25 | + - name: Install dependencies |
| 26 | + run: pnpm install |
| 27 | + - name: Build package |
| 28 | + run: pnpm build |
22 | 29 | - name: Check size |
23 | | - uses: andresz1/size-limit-action@master |
24 | | - with: |
25 | | - github_token: ${{ secrets.GITHUB_TOKEN }} |
26 | | - typings: |
| 30 | + run: pnpm test:size |
| 31 | + editorconfig: |
| 32 | + runs-on: ubuntu-latest |
| 33 | + name: editorconfig |
| 34 | + steps: |
| 35 | + - name: Checkout the repository |
| 36 | + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 37 | + - name: Install editorconfig-checker |
| 38 | + uses: editorconfig-checker/action-editorconfig-checker@51f63319f592f97930c73d9c46184d20bd206393 # v3.0.0 |
| 39 | + - name: Check editorconfig |
| 40 | + run: editorconfig-checker |
| 41 | + package-json: |
27 | 42 | runs-on: ubuntu-latest |
28 | | - name: typings |
| 43 | + name: package.json |
29 | 44 | steps: |
30 | 45 | - name: Checkout the repository |
31 | | - uses: actions/checkout@v5 |
| 46 | + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
32 | 47 | - name: Install pnpm |
33 | | - uses: pnpm/action-setup@v4 |
| 48 | + uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 |
34 | 49 | with: |
35 | | - version: 10 |
| 50 | + version: 12 |
36 | 51 | - name: Install Node.js |
37 | | - uses: actions/setup-node@v6 |
| 52 | + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 |
38 | 53 | with: |
39 | | - node-version: 22 |
| 54 | + node-version-file: .tool-versions |
40 | 55 | cache: 'pnpm' |
41 | | - - name: Install dependencies |
42 | | - run: pnpm install |
43 | | - - name: Prebuild |
44 | | - run: pnpm build |
45 | | - - name: Check typings |
46 | | - if: success() |
47 | | - run: pnpm test:typings |
| 56 | + # The sandboxes and the website are private apps, not published packages |
| 57 | + - name: Check package.json files |
| 58 | + run: pnpm --package=@trigen/lint-package-json dlx lint-package-json --ignore sandboxes --ignore website |
48 | 59 | storybook: |
49 | 60 | runs-on: ubuntu-latest |
50 | 61 | name: storybook |
51 | 62 | steps: |
52 | 63 | - name: Checkout the repository |
53 | | - uses: actions/checkout@v5 |
| 64 | + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
54 | 65 | - name: Install pnpm |
55 | | - uses: pnpm/action-setup@v4 |
| 66 | + uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 |
56 | 67 | with: |
57 | | - version: 10 |
| 68 | + version: 12 |
58 | 69 | - name: Install Node.js |
59 | | - uses: actions/setup-node@v6 |
| 70 | + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 |
60 | 71 | with: |
61 | | - node-version: 22 |
| 72 | + node-version-file: .tool-versions |
62 | 73 | cache: 'pnpm' |
63 | 74 | - name: Install dependencies |
64 | 75 | run: pnpm install |
65 | | - - name: Check storybook |
| 76 | + - name: Build storybook |
66 | 77 | run: pnpm build:storybook |
67 | | - editorconfig: |
68 | | - runs-on: ubuntu-latest |
69 | | - name: editorconfig |
70 | | - steps: |
71 | | - - name: Checkout the repository |
72 | | - uses: actions/checkout@v5 |
73 | | - - name: Check editorconfig |
74 | | - uses: editorconfig-checker/action-editorconfig-checker@main |
75 | 78 | website: |
76 | 79 | runs-on: ubuntu-latest |
77 | 80 | name: website |
78 | 81 | steps: |
79 | 82 | - name: Checkout the repository |
80 | | - uses: actions/checkout@v5 |
| 83 | + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
81 | 84 | - name: Install pnpm |
82 | | - uses: pnpm/action-setup@v4 |
| 85 | + uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 |
83 | 86 | with: |
84 | | - version: 10 |
| 87 | + version: 12 |
85 | 88 | - name: Install Node.js |
86 | | - uses: actions/setup-node@v6 |
| 89 | + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 |
87 | 90 | with: |
88 | | - node-version: 22 |
| 91 | + node-version-file: .tool-versions |
89 | 92 | cache: 'pnpm' |
90 | 93 | - name: Install dependencies |
91 | 94 | run: pnpm install |
92 | 95 | - name: Install website dependencies |
93 | 96 | run: pnpm install |
94 | 97 | working-directory: ./website |
95 | | - - name: Check website |
| 98 | + - name: Build website |
96 | 99 | run: pnpm build |
97 | 100 | working-directory: ./website |
0 commit comments