-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (36 loc) · 1.02 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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