Skip to content

Commit

Permalink
Merge pull request #29 from 417-72KI/swift-5.6
Browse files Browse the repository at this point in the history
Swift 5.6 support
  • Loading branch information
417-72KI authored Apr 22, 2022
2 parents ea68f82 + 072b77e commit f896689
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 2 additions & 0 deletions versions.json → .github/matrix.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"swift_version": [
"latest",
"5.6",
"5.5",
"5.4",
"5.3"
],
"swiftlint_supported_version": {
"latest": "master",
"5.6": "master",
"5.5": "master",
"5.4": "0.46.5",
"5.3": "0.46.5"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker_hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- '**/Dockerfile'
- 'Dockerfile'
- 'entrypoint.sh'
- 'versions.json'
- '.github/matrix.json'
schedule:
- cron: 0 21 * * 0
workflow_dispatch:
Expand All @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v3
- id: set-matrix
run: |
matrix=$(cat versions.json | jq -c .)
matrix=$(cat .github/matrix.json | jq -c .)
echo "::set-output name=matrix::$matrix"
build:
needs: generate-matrix
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- '.github/workflows/docker_hub.yml'
- '.github/workflows/validate.yml'
- '**/Dockerfile'
- 'versions.json'
- '.github/matrix.json'
env:
DOCKER_USER: 41772ki
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
Expand All @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v3
- id: set-matrix
run: |
matrix=$(cat versions.json | jq -c .)
matrix=$(cat .github/matrix.json | jq -c .)
echo "::set-output name=matrix::$matrix"
validate:
needs: generate-matrix
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,14 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Danger
uses: 417-72KI/danger-swiftlint@v5.5
uses: 417-72KI/danger-swiftlint@v5.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
### Note for version
> **Note** Version will match to Swift version since next time.
- v5(v5.5): Swift 5.5
- v5.6: Swift 5.6
- v5.5: Swift 5.5
- v4: Swift 5.4
- v3: Swift 5.3
- v2: Swift 5.2 (no longer updated)
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ inputs:
required: false
runs:
using: 'docker'
image: 'docker://41772ki/danger-swiftlint:5.5'
image: 'docker://41772ki/danger-swiftlint:5.6'
branding:
icon: 'alert-circle'
color: 'purple'

0 comments on commit f896689

Please sign in to comment.