-
Notifications
You must be signed in to change notification settings - Fork 210
113 lines (101 loc) · 3.1 KB
/
Copy pathbuild.yml
File metadata and controls
113 lines (101 loc) · 3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
---
name: build
on:
push:
tags-ignore:
- '**'
branches:
- master
pull_request:
jobs:
yamllint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7.0.0
- uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1
with:
strict: true
smoke-test:
runs-on: ubuntu-24.04
strategy:
matrix:
node-version: [24, 25]
bun-version: [1.2.23, 1.3.10]
steps:
- uses: actions/checkout@v7.0.0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: ${{ matrix.bun-version }}
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: bun install --frozen-lockfile
- run: bun run build:linux-amd64
- run: bin/linux-amd64/gitlab-ci-local --version
- run: bin/linux-amd64/gitlab-ci-local --help
- run: bun run build:node
- run: node dist/index.js --version
- run: node dist/index.js --help
- run: head -1 dist/index.js | grep -q '#!/usr/bin/env node'
typecheck:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7.0.0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.3.14
- run: bun install --frozen-lockfile
- run: bun run typecheck
eslint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7.0.0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.3.14
- run: bun install --frozen-lockfile
- run: bun run lint
unused-deps:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7.0.0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.3.14
- run: bun install --frozen-lockfile
- run: bunx depcheck --ignores depcheck,@types/bun,@types/bun-types,vitest,@vitest/coverage-v8
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7.0.0
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.3.14
- run: bun install --frozen-lockfile
- name: Run Tests
run: bun run coverage
- uses: sonarsource/sonarqube-scan-action@713881670b6b3676cda39549040e2d88c70d582e # v8.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: ${{ env.SONAR_TOKEN != '' }}
code-ql:
name: CodeQL
runs-on: ubuntu-24.04
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v7.0.0
- name: Initialize CodeQL
uses: github/codeql-action/init@v4.36.2
with:
languages: 'typescript'
- name: Autobuild
uses: github/codeql-action/autobuild@v4.36.2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4.36.2