Skip to content

Commit 7751ab6

Browse files
authored
chore: update ci workflow (#25)
1 parent d8439b8 commit 7751ab6

13 files changed

+57
-144
lines changed

.github/workflows/semantic-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
semantic-release:
1010
runs-on: ubuntu-22.04
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
1515

@@ -52,14 +52,14 @@ jobs:
5252
failTitle: false" > .releaserc.yml
5353
5454
- name: Setup Node.js
55-
uses: actions/setup-node@v3
55+
uses: actions/setup-node@v4
5656
with:
57-
node-version: "lts/*"
57+
node-version: '20'
5858

5959
- name: Install semantic-release
6060
run: |
61-
npm install semantic-release conventional-changelog-conventionalcommits -D
62-
61+
npm install semantic-release@v24 conventional-changelog-conventionalcommits@v8 -D
62+
npm list
6363
- name: Release
6464
env:
6565
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/swift-benchmark-delta.yml

Lines changed: 0 additions & 88 deletions
This file was deleted.

.github/workflows/swift-check-api-breaks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
timeout-minutes: 30
1313

1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818
- name: Ubuntu deps

.github/workflows/swift-code-coverage.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,21 @@ jobs:
1111
runs-on: [ubuntu-22.04]
1212
timeout-minutes: 60
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- name: Ubuntu deps
1717
if: ${{ runner.os == 'Linux' }}
1818
run: |
19-
sudo apt-get install -y libjemalloc-dev llvm-15
19+
sudo apt-get install -y libjemalloc-dev
20+
21+
- uses: swift-actions/setup-swift@v2
22+
23+
- name: Swift version
24+
run: swift --version
2025

2126
- name: Run tests
2227
continue-on-error: true
23-
run: |
24-
[ -d Tests ] && swift test --parallel --enable-code-coverage
28+
run: swift test --parallel --enable-code-coverage
2529

2630
- name: Export code coverage
2731
run: |
@@ -32,12 +36,12 @@ jobs:
3236
fi
3337
3438
if [ -f ${xctest_binary} ]; then
35-
llvm-cov-15 export -format="lcov" ${xctest_binary} -instr-profile .build/debug/codecov/default.profdata > info.lcov
39+
llvm-cov export -format="lcov" ${xctest_binary} -instr-profile .build/debug/codecov/default.profdata > info.lcov
3640
fi
3741
3842
- name: Upload codecov
39-
uses: codecov/codecov-action@v2
43+
uses: codecov/codecov-action@v4
4044
with:
41-
token: ${{ secrets.CODECOV_REPO_TOKEN }}
45+
token: ${{ secrets.CODECOV_REPO_TOKEN }}
4246
files: info.lcov
4347
fail_ci_if_error: true

.github/workflows/swift-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
timeout-minutes: 60
1414
runs-on: [ubuntu-latest]
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
- name: GitHub Action for SwiftLint with --strict
1818
uses: norio-nomura/[email protected]
1919
with:

.github/workflows/swift-linux-build.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Swift Linux build
1+
name: Linux build
22

33
on:
44
workflow_dispatch:
@@ -14,17 +14,17 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: [ubuntu-latest]
17-
swift: ["5.7", "5.8"]
18-
17+
# swift: [ "5.10", "6.0" ]
1918

2019
runs-on: ${{ matrix.os }}
2120

2221
steps:
23-
- uses: fwal/[email protected]
22+
- uses: swift-actions/setup-swift@v2
23+
if: ${{ false }}
2424
with:
2525
swift-version: ${{ matrix.swift }}
2626

27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828

2929
- name: Ubuntu deps
3030
if: ${{ runner.os == 'Linux' }}
@@ -38,5 +38,7 @@ jobs:
3838
run: swift build
3939

4040
- name: Run tests
41-
run: |
42-
[ -d Tests ] && swift test --parallel
41+
run: swift test --parallel
42+
43+
- name: Run tests (release)
44+
run: swift test -c release --parallel
Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
1-
name: Swift macOS build
1+
name: macOS build
22

33
on:
44
workflow_dispatch:
55
push:
66
branches: [ main ]
77
pull_request:
88
branches: [ main ]
9-
9+
1010
jobs:
1111
build-macos:
1212
timeout-minutes: 60
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os: [macos-13]
17-
swift: ["5.7", "5.8"]
16+
os: [macos-15]
17+
# swift: [ "5.10", "6.0" ]
1818

1919
runs-on: ${{ matrix.os }}
2020

2121
steps:
22-
- uses: fwal/[email protected]
22+
- uses: swift-actions/setup-swift@v2
23+
if: ${{ false }}
2324
with:
2425
swift-version: ${{ matrix.swift }}
2526

@@ -29,18 +30,22 @@ jobs:
2930
echo "/opt/homebrew/bin:/usr/local/bin" >> $GITHUB_PATH
3031
echo BENCHMARK_DISABLE_JEMALLOC=true >> $GITHUB_ENV
3132
brew install jemalloc
32-
- uses: actions/checkout@v3
33+
34+
- uses: actions/checkout@v4
35+
36+
- name: GH auth
37+
run: |
38+
echo "machine api.github.com login ${{ secrets.GITHUB_TOKEN }} password x-oauth-basic" > $HOME/.netrc
39+
cat ~/.netrc
40+
3341
- name: Swift version
3442
run: swift --version
43+
3544
- name: Build
3645
run: swift build
46+
3747
- name: Run tests
38-
run: |
39-
if [ -d Tests ]; then
40-
swift test --parallel
41-
fi
48+
run: swift test --parallel
49+
4250
- name: Run tests (release)
43-
run: |
44-
if [ -d Tests ]; then
45-
swift test -c release --parallel
46-
fi
51+
run: swift test -c release --parallel

.github/workflows/swift-outdated-dependencies.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ jobs:
1010
runs-on: [ubuntu-latest]
1111
timeout-minutes: 60
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
- name: Check Swift package dependencies
1515
id: spm-dep-check
16-
uses: MarcoEidinger/swift-package-dependencies-check@2.3.4
16+
uses: MarcoEidinger/swift-package-dependencies-check@2.5.0
1717
with:
1818
isMutating: true
1919
failWhenOutdated: false
2020
- name: Create Pull Request
2121
if: steps.spm-dep-check.outputs.outdatedDependencies == 'true'
22-
uses: peter-evans/create-pull-request@v3
22+
uses: peter-evans/create-pull-request@v7
2323
with:
2424
commit-message: 'chore: update package dependencies'
2525
branch: updatePackageDepedencies

.github/workflows/swift-sanitizer-address.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
os: [ubuntu-latest]
15+
os: [macos-15]
1616

1717
runs-on: ${{ matrix.os }}
1818
timeout-minutes: 60
@@ -29,7 +29,7 @@ jobs:
2929
run: |
3030
sudo apt-get install -y libjemalloc-dev
3131
32-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v4
3333

3434
- name: Swift version
3535
run: swift --version
@@ -40,9 +40,9 @@ jobs:
4040

4141
- name: Run address sanitizer
4242
run: swift test --sanitize=address
43-
43+
4444
- name: Clean before release build sanitizier
4545
run: swift package clean
46-
46+
4747
- name: Run address sanitizer on release build
4848
run: swift test --sanitize=address -c release -Xswiftc -enable-testing

.github/workflows/swift-sanitizer-thread.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
sudo apt-get install -y libjemalloc-dev
3131
echo BENCHMARK_DISABLE_JEMALLOC=true >> $GITHUB_ENV
3232
33-
- uses: actions/checkout@v3
33+
- uses: actions/checkout@v4
3434

3535
- name: Swift version
3636
run: swift --version
@@ -41,9 +41,9 @@ jobs:
4141

4242
- name: Run thread sanitizer
4343
run: swift test --sanitize=thread
44-
44+
4545
- name: Clean before release build sanitizier
4646
run: swift package clean
47-
47+
4848
- name: Run thread sanitizer on release build
4949
run: swift test --sanitize=thread -c release -Xswiftc -enable-testing

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
####################################################################
2-
# DO NOT EDIT THIS FILE MANUALLY
3-
# This is a master file maintained in https://github.com/ordo-one/repository-templates
4-
51
# Xcode
62
#
73
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

.swiftlint.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
####################################################################
2-
# DO NOT EDIT THIS FILE
3-
# This is a master file maintained in https://github.com/ordo-one/public-repository-templates
4-
#
5-
# Add overrides into `swiftlint_refinement.yml` in the directory it self or
6-
# .swiftlint.yml under the specific directory where the code is located
7-
#
82
# Documentation is under https://github.com/realm/SwiftLint
93
####################################################################
104

Tests/HistogramTests/HistogramDataAccessTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ final class HistogramDataAccessTests: XCTestCase {
3636
numberOfSignificantValueDigits: numberOfSignificantValueDigits
3737
)
3838

39-
override class func setUp() {
39+
override static func setUp() {
4040
// Log hypothetical scenario: 100 seconds of "perfect" 1msec results, sampled
4141
// 100 times per second (10,000 results), followed by a 100 second pause with
4242
// a single (100 second) recorded result. Recording is done indicating an expected

0 commit comments

Comments
 (0)