mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-05-28 22:16:05 -04:00
Add GitHub actions for linting
This commit is contained in:
parent
60d20c3758
commit
e8a4835f4e
1 changed files with 23 additions and 0 deletions
23
.github/workflows/do_all_of_the_things.yml
vendored
Normal file
23
.github/workflows/do_all_of_the_things.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
name: Do all of the things!
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
do-all-of-the-things:
|
||||
name: Do all of the things!
|
||||
runs-on: macos-12
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: swift-actions/setup-swift@v1
|
||||
- name: Print SwiftLint version
|
||||
run: swiftlint --version
|
||||
- name: Run SwiftLint
|
||||
run: swiftlint --strict
|
||||
- name: Download DrString
|
||||
run: curl --silent https://api.github.com/repos/dduan/DrString/releases/latest | grep "browser_download_url.*drstring-x86_64-apple-darwin.tar.gz" | awk '{ print $NF }' | tr -d '"' | curl --location --silent --output drstring-x86_64-apple-darwin.tar.gz
|
||||
- name: Extract DrString
|
||||
run: tar --extract --file drstring-x86_64-apple-darwin.tar.gz --directory drstring-x86_64-apple-darwin
|
||||
- name: Add DrString to $PATH
|
||||
run: echo "$GITHUB_WORKSPACE/drstring-x86_64-apple-darwin" >> $GITHUB_PATH
|
||||
- name: Print DrString version
|
||||
run: drstring --version
|
||||
- name: Run DrString
|
||||
run: drstring check --config-file .drstring.toml
|
Loading…
Add table
Add a link
Reference in a new issue