Skip to content

Commit

Permalink
Hashable Conformances (#9)
Browse files Browse the repository at this point in the history
* Hashable Conformances

* Updated Workflow to use SwiftActions
  • Loading branch information
richardpiazza authored Jul 2, 2023
1 parent e1c4fa5 commit fafb099
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,22 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
macos-build:
SwiftActions:
strategy:
matrix:
os: [macos-12, ubuntu-latest]

runs-on: macos-latest
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Build (macOS)
run: swift build -v
- name: Run tests
run: swift test -v

ubuntu-build:
- name: Checkout Source
uses: actions/checkout@v3

runs-on: ubuntu-latest
- name: Swift Build
uses: SwiftActions/SwiftBuild@main

steps:
- uses: actions/checkout@v2
- name: Build (Ubuntu)
run: swift build -v
- name: Run tests
run: swift test -v
- name: Swift Test
uses: SwiftActions/SwiftTest@main
2 changes: 1 addition & 1 deletion Sources/LocaleSupport/LanguageCode.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// ISO 639 Standardized Language Classification.
///
/// Each language is assigned a two-letter (639-1) and three-letter (639-2 and 639-3) lowercase abbreviation.
public enum LanguageCode: String, Codable, CaseIterable {
public enum LanguageCode: String, Hashable, Codable, CaseIterable {
case aa
case ab
case ace
Expand Down
2 changes: 1 addition & 1 deletion Sources/LocaleSupport/RegionCode.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// ISO 3166 Country/Subdivision Code
///
/// Codes for the names of countries, dependent territories, special areas of geographical interest, and their principal subdivisions.
public enum RegionCode: String, Codable, CaseIterable {
public enum RegionCode: String, Hashable, Codable, CaseIterable {
case AC
case AD
case AE
Expand Down
2 changes: 1 addition & 1 deletion Sources/LocaleSupport/ScriptCode.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Designator used when ambiguity needs to be resolved for a particular language and/or language & region pair.
public enum ScriptCode: String, Codable, CaseIterable {
public enum ScriptCode: String, Hashable, Codable, CaseIterable {
case Arab
case Beng
case Cyrl
Expand Down

0 comments on commit fafb099

Please sign in to comment.