Skip to content

Commit 74fb116

Browse files
committed
fix: fix ci/cd
1 parent 642e65b commit 74fb116

2 files changed

Lines changed: 35 additions & 39 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,40 @@
1-
name: CodeQL
1+
name: "CodeQL"
22

33
on:
44
push:
5-
branches: ["main"]
5+
branches: [ "main" ]
66
pull_request:
7-
branches: ["main"]
8-
schedule:
9-
- cron: "0 3 * * 1" # щопонеділка о 3:00
7+
branches: [ "main" ]
108

9+
# Allow one concurrent deployment
1110
concurrency:
12-
group: "scanning-${{ github.ref }}"
13-
cancel-in-progress: false
11+
group: "scanning"
12+
cancel-in-progress: true
13+
1414

1515
jobs:
1616
analyze:
17-
name: Analyze Swift
18-
runs-on: macos-26
17+
name: Analyze
18+
runs-on: macos-15
1919
permissions:
20-
actions: read
21-
contents: read
2220
security-events: write
2321

24-
steps:
25-
- name: Checkout
26-
uses: actions/checkout@v4
27-
28-
- name: Select Xcode
29-
uses: maxim-lobanov/setup-xcode@v1
30-
with:
31-
xcode-version: "16.3.0"
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
language: [ 'swift' ]
3226

33-
- name: Initialize CodeQL
34-
uses: github/codeql-action/init@v4
35-
with:
36-
languages: swift
37-
queries: security-extended # ширше покриття, ніж дефолт
38-
39-
- name: Build
40-
run: swift build
41-
42-
- name: Perform CodeQL Analysis
43-
uses: github/codeql-action/analyze@v4
27+
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@v4
30+
31+
- name: Initialize CodeQL
32+
uses: github/codeql-action/init@v4
33+
with:
34+
languages: ${{ matrix.language }}
35+
36+
- name: Build
37+
run: swift build
38+
39+
- name: Perform CodeQL Analysis
40+
uses: github/codeql-action/analyze@v4

.github/workflows/lint.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,25 @@ name: Lint code
22

33
on:
44
push:
5-
pull_request:
65

76
concurrency:
8-
group: "linting-${{ github.ref }}"
7+
group: "linting"
98
cancel-in-progress: true
109

1110
jobs:
1211
SwiftLint:
13-
runs-on: ubuntu-latest
12+
runs-on: macOS-15
1413
steps:
1514
- name: Checkout
1615
uses: actions/checkout@v4
1716

17+
- name: Select Xcode
18+
uses: maxim-lobanov/setup-xcode@v1
19+
with:
20+
xcode-version: latest-stable
21+
1822
- name: Install SwiftLint
19-
run: |
20-
curl -fsSL \
21-
"https://github.com/realm/SwiftLint/releases/latest/download/swiftlint_linux.zip" \
22-
-o swiftlint.zip
23-
unzip -q swiftlint.zip swiftlint
24-
sudo mv swiftlint /usr/local/bin/
23+
run: brew install swiftlint
2524

2625
- name: Verify SwiftLint version
2726
run: swiftlint version

0 commit comments

Comments
 (0)