|
1 | 1 | name: CI |
2 | 2 |
|
| 3 | +permissions: |
| 4 | + contents: read |
| 5 | + |
3 | 6 | on: |
4 | 7 | push: |
5 | 8 | branches: |
|
12 | 15 | jobs: |
13 | 16 | biome: |
14 | 17 | runs-on: ubuntu-24.04 |
| 18 | + timeout-minutes: 15 |
| 19 | + permissions: |
| 20 | + contents: read |
15 | 21 | steps: |
16 | 22 | - name: Checkout your repository using git |
17 | | - uses: actions/checkout@v4 |
| 23 | + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
| 24 | + with: |
| 25 | + persist-credentials: false |
18 | 26 | - name: Setup toolchain |
19 | | - uses: jdx/mise-action@v2 |
| 27 | + uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 |
20 | 28 | - name: Install dependencies |
21 | 29 | run: bun install --frozen-lockfile |
22 | 30 | - name: Check using Biome |
23 | 31 | run: bun run ci |
24 | 32 |
|
25 | 33 | tsc: |
26 | 34 | runs-on: ubuntu-24.04 |
| 35 | + timeout-minutes: 15 |
| 36 | + permissions: |
| 37 | + contents: read |
27 | 38 | steps: |
28 | 39 | - name: Checkout your repository using git |
29 | | - uses: actions/checkout@v4 |
| 40 | + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
| 41 | + with: |
| 42 | + persist-credentials: false |
30 | 43 | - name: Setup toolchain |
31 | | - uses: jdx/mise-action@v2 |
| 44 | + uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 |
32 | 45 | - name: Install dependencies |
33 | 46 | run: bun install --frozen-lockfile |
34 | 47 | - name: Check using tsc |
35 | 48 | run: bun run tsc |
36 | 49 |
|
37 | 50 | test: |
38 | 51 | runs-on: ubuntu-24.04 |
| 52 | + timeout-minutes: 15 |
| 53 | + permissions: |
| 54 | + contents: read |
39 | 55 | steps: |
40 | 56 | - name: Checkout your repository using git |
41 | | - uses: actions/checkout@v4 |
| 57 | + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
| 58 | + with: |
| 59 | + persist-credentials: false |
42 | 60 | - name: Setup toolchain |
43 | | - uses: jdx/mise-action@v2 |
| 61 | + uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 |
44 | 62 | - name: Install dependencies |
45 | 63 | run: bun install --frozen-lockfile |
46 | 64 | - name: Test |
47 | 65 | run: bun run test |
48 | 66 |
|
49 | 67 | build: |
50 | 68 | runs-on: ubuntu-24.04 |
| 69 | + timeout-minutes: 15 |
| 70 | + permissions: |
| 71 | + contents: read |
51 | 72 | steps: |
52 | 73 | - name: Checkout your repository using git |
53 | | - uses: actions/checkout@v4 |
| 74 | + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
| 75 | + with: |
| 76 | + persist-credentials: false |
54 | 77 | - name: Setup toolchain |
55 | | - uses: jdx/mise-action@v2 |
| 78 | + uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 |
56 | 79 | - name: Install dependencies |
57 | 80 | run: bun install --frozen-lockfile |
58 | 81 | - name: Build |
59 | 82 | run: bun run build |
| 83 | + |
| 84 | + github-actions: |
| 85 | + runs-on: ubuntu-24.04 |
| 86 | + timeout-minutes: 15 |
| 87 | + permissions: |
| 88 | + contents: read |
| 89 | + strategy: |
| 90 | + matrix: |
| 91 | + task: ["actionlint", "ghalint", "zizmor"] |
| 92 | + fail-fast: false |
| 93 | + steps: |
| 94 | + - name: Checkout your repository using git |
| 95 | + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
| 96 | + with: |
| 97 | + persist-credentials: false |
| 98 | + - name: Setup toolchain |
| 99 | + uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 |
| 100 | + - name: Run actionlint |
| 101 | + if: matrix.task == 'actionlint' |
| 102 | + run: actionlint |
| 103 | + - name: Run ghalint |
| 104 | + if: matrix.task == 'ghalint' |
| 105 | + run: ghalint run |
| 106 | + - name: Run zizmor |
| 107 | + if: matrix.task == 'zizmor' |
| 108 | + run: zizmor . |
0 commit comments