|
1 | 1 | name: Format |
2 | 2 |
|
3 | 3 | on: |
4 | | - pull_request: |
5 | | - paths: |
6 | | - - '**.css' |
7 | | - - '**.php' |
8 | | - - '**.js' |
9 | | - - '**.vue' |
| 4 | + pull_request: |
| 5 | + paths: |
| 6 | + - '**.css' |
| 7 | + - '**.php' |
| 8 | + - '**.js' |
| 9 | + - '**.vue' |
10 | 10 |
|
11 | 11 | jobs: |
12 | | - prettier: |
13 | | - runs-on: ubuntu-latest |
14 | | - |
15 | | - steps: |
16 | | - - uses: actions/checkout@v2 |
17 | | - with: |
18 | | - ref: ${{ github.head_ref }} |
19 | | - |
20 | | - - name: Install |
21 | | - run: yarn install |
22 | | - env: |
23 | | - CI: true |
24 | | - |
25 | | - - name: Run prettier |
26 | | - run: yarn run prettier --write 'resources/**/*.{css,js,vue}' |
27 | | - |
28 | | - - uses: stefanzweifel/git-auto-commit-action@v4 |
29 | | - with: |
30 | | - commit_message: "style: resolve style guide violations" |
31 | | - branch: ${{ github.head_ref }} |
32 | | - |
33 | | - rustywind: |
34 | | - runs-on: ubuntu-latest |
35 | | - |
36 | | - steps: |
37 | | - - uses: actions/checkout@v2 |
38 | | - with: |
39 | | - ref: ${{ github.head_ref }} |
40 | | - token: ${{ secrets.GH_TOKEN }} |
41 | | - |
42 | | - - name: Format |
43 | | - run: | |
44 | | - export PATH="$(yarn global bin):$PATH" |
45 | | - yarn global add rustywind |
46 | | - rustywind --write resources/views |
47 | | -
|
48 | | - - uses: stefanzweifel/git-auto-commit-action@v4 |
49 | | - with: |
50 | | - commit_message: "style: resolve style guide violations" |
51 | | - branch: ${{ github.head_ref }} |
52 | | - |
53 | | - icons: |
54 | | - runs-on: ubuntu-latest |
55 | | - |
56 | | - steps: |
57 | | - - uses: actions/checkout@v2 |
58 | | - with: |
59 | | - ref: ${{ github.head_ref }} |
60 | | - token: ${{ secrets.GH_TOKEN }} |
61 | | - |
62 | | - - name: Install |
63 | | - run: yarn install |
64 | | - env: |
65 | | - CI: true |
66 | | - |
67 | | - - name: Format |
68 | | - run: | |
69 | | - node scripts/rename-classes.js |
70 | | - node scripts/remove-colors.js |
71 | | - node scripts/generate-preview.js |
72 | | -
|
73 | | - - uses: stefanzweifel/git-auto-commit-action@v4 |
74 | | - with: |
75 | | - commit_message: "style: format icons" |
76 | | - branch: ${{ github.head_ref }} |
| 12 | + php-cs-fixer: |
| 13 | + runs-on: ubuntu-latest |
| 14 | + |
| 15 | + steps: |
| 16 | + - uses: actions/checkout@v2 |
| 17 | + with: |
| 18 | + ref: ${{ github.head_ref }} |
| 19 | + |
| 20 | + - name: Setup PHP |
| 21 | + uses: shivammathur/setup-php@v2 |
| 22 | + with: |
| 23 | + php-version: "8.0" |
| 24 | + extensions: mbstring, dom, fileinfo, intl, gd, imagick, bcmath, soap, zip, sqlite, pcov |
| 25 | + coverage: pcov |
| 26 | + |
| 27 | + - name: Install |
| 28 | + run: composer install --no-ansi --no-interaction --no-suggest --no-progress --prefer-dist --optimize-autoloader --ignore-platform-reqs |
| 29 | + |
| 30 | + - name: Run php-cs-fixer |
| 31 | + run: PHP_CS_FIXER_IGNORE_ENV=true composer format |
| 32 | + |
| 33 | + - uses: stefanzweifel/git-auto-commit-action@v4 |
| 34 | + with: |
| 35 | + commit_message: "style: resolve style guide violations" |
| 36 | + branch: ${{ github.head_ref }} |
| 37 | + |
| 38 | + prettier: |
| 39 | + runs-on: ubuntu-latest |
| 40 | + |
| 41 | + steps: |
| 42 | + - uses: actions/checkout@v2 |
| 43 | + with: |
| 44 | + ref: ${{ github.head_ref }} |
| 45 | + |
| 46 | + - name: Install |
| 47 | + run: yarn install |
| 48 | + env: |
| 49 | + CI: true |
| 50 | + |
| 51 | + - name: Run prettier |
| 52 | + run: yarn run prettier --write 'resources/**/*.{css,js,vue}' |
| 53 | + |
| 54 | + - uses: stefanzweifel/git-auto-commit-action@v4 |
| 55 | + with: |
| 56 | + commit_message: "style: resolve style guide violations" |
| 57 | + branch: ${{ github.head_ref }} |
| 58 | + |
| 59 | + rustywind: |
| 60 | + runs-on: ubuntu-latest |
| 61 | + |
| 62 | + steps: |
| 63 | + - uses: actions/checkout@v2 |
| 64 | + with: |
| 65 | + ref: ${{ github.head_ref }} |
| 66 | + token: ${{ secrets.GH_TOKEN }} |
| 67 | + |
| 68 | + - name: Format |
| 69 | + run: | |
| 70 | + export PATH="$(yarn global bin):$PATH" |
| 71 | + yarn global add rustywind |
| 72 | + rustywind --write resources/views |
| 73 | +
|
| 74 | + - uses: stefanzweifel/git-auto-commit-action@v4 |
| 75 | + with: |
| 76 | + commit_message: "style: resolve style guide violations" |
| 77 | + branch: ${{ github.head_ref }} |
| 78 | + |
| 79 | + icons: |
| 80 | + runs-on: ubuntu-latest |
| 81 | + |
| 82 | + steps: |
| 83 | + - uses: actions/checkout@v2 |
| 84 | + with: |
| 85 | + ref: ${{ github.head_ref }} |
| 86 | + token: ${{ secrets.GH_TOKEN }} |
| 87 | + |
| 88 | + - name: Install |
| 89 | + run: yarn install |
| 90 | + env: |
| 91 | + CI: true |
| 92 | + |
| 93 | + - name: Format |
| 94 | + run: | |
| 95 | + node scripts/rename-classes.js |
| 96 | + node scripts/remove-colors.js |
| 97 | + node scripts/generate-preview.js |
| 98 | +
|
| 99 | + - uses: stefanzweifel/git-auto-commit-action@v4 |
| 100 | + with: |
| 101 | + commit_message: "style: format icons" |
| 102 | + branch: ${{ github.head_ref }} |
0 commit comments