feat: add args
input (#13)
#18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
style: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
steps: | |
- name: Use LF line endings | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- uses: actions/checkout@v3 | |
- name: Check formatting latest | |
uses: ./ | |
- name: Check formatting specific version | |
uses: ./ | |
with: | |
dprint-version: 0.30.3 | |
- name: Check formatting specific config | |
uses: ./ | |
with: | |
config-path: 'dprint.json' | |
- name: Check formatting specific version and config | |
uses: ./ | |
with: | |
dprint-version: 0.30.3 | |
config-path: 'dprint.json' | |
- name: make poorly-formatted json file | |
run: | | |
echo '{"a": 1, "b": 2}' > poorly-formatted.json | |
- name: Check formatting with excludes | |
uses: ./ | |
with: | |
args: --excludes poorly-formatted.json | |