diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index b10ebba..1a35012 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -12,7 +12,7 @@ jobs: arch: [x86_64, arm64] steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get swift version run: swift --version @@ -33,7 +33,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get swift version run: swift --version diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e54e830..1a437fc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,10 +16,13 @@ jobs: os: [macos-15, ubuntu-latest] steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get swift version run: swift --version + - name: Build + run: swift build -v + - name: Run tests - run: swift test + run: swift test -v diff --git a/Sources/Parser.swift b/Sources/Parser.swift index 6e8d8b4..92d237e 100644 --- a/Sources/Parser.swift +++ b/Sources/Parser.swift @@ -102,7 +102,7 @@ func writeFishHistory(to path: String, history: [FishHistoryEntry], backup: Bool /// /// - Returns: List of ``FishHistoryEntry`` entries from history file. func parseFishHistory(from filePath: String) -> [FishHistoryEntry]? { - guard let fileContents = try? String(contentsOfFile: filePath, encoding: String.Encoding.utf8) else { + guard let fileContents = try? String(contentsOfFile: filePath, encoding: .utf8) else { print("Failed to open file.") return nil }