onasty/.github/workflows/elm.yml (view raw)
Smirnov Oleksandr
Smirnov Oleksandr
ss2316544@gmail.com web: add some styles (#136)..., 11 months ago
ss2316544@gmail.com web: add some styles (#136)..., 11 months ago
| 1 | name: elm |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | push: |
| 6 | branches: [main] |
| 7 | paths: ["web/**"] |
| 8 | pull_request: |
| 9 | paths: ["web/**"] |
| 10 | |
| 11 | |
| 12 | jobs: |
| 13 | release: |
| 14 | runs-on: ubuntu-latest |
| 15 | defaults: |
| 16 | run: |
| 17 | working-directory: web |
| 18 | steps: |
| 19 | - uses: actions/checkout@v4 |
| 20 | - uses: oven-sh/setup-bun@v2 |
| 21 | |
| 22 | - name: Install deps |
| 23 | run: bun install --frozen-lockfile |
| 24 | |
| 25 | - name: Elm cache |
| 26 | uses: actions/cache@v4 |
| 27 | with: |
| 28 | path: ~/.elm |
| 29 | key: elm-${{ runner.os }}-${{ hashFiles('web/elm.json') }} |
| 30 | restore-keys: | |
| 31 | elm-${{ runner.os }}- |
| 32 | |
| 33 | - name: Build |
| 34 | run: bunx elm-land build |
| 35 | |
| 36 | - name: elm-review |
| 37 | run: bunx elm-review --ignore-dirs .elm-land |
| 38 | |
| 39 | - name: elm-format |
| 40 | run: bunx elm-format --validate src/ |
| 41 | |
| 42 | |
| 43 | - name: Tests |
| 44 | run: bunx elm-test-rs |