onasty/.github/workflows/elm.yml (view raw)
dependabot[bot]
dependabot[bot]
49699333+dependabot[bot]@users.noreply.github.com chore(deps): bump actions/checkout from 4 to 5 (#208)..., 9 months ago
49699333+dependabot[bot]@users.noreply.github.com chore(deps): bump actions/checkout from 4 to 5 (#208)..., 9 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@v5 |
| 20 | - name: Read .tool-versions |
| 21 | uses: marocchino/tool-versions-action@v1 |
| 22 | id: versions |
| 23 | |
| 24 | - uses: oven-sh/setup-bun@v2 |
| 25 | with: |
| 26 | bun-version: ${{ steps.versions.outputs.bun }} |
| 27 | |
| 28 | |
| 29 | - name: Install deps |
| 30 | run: bun install --frozen-lockfile |
| 31 | |
| 32 | - name: Elm cache |
| 33 | uses: actions/cache@v4 |
| 34 | with: |
| 35 | path: ~/.elm |
| 36 | key: elm-${{ runner.os }}-${{ hashFiles('web/elm.json') }} |
| 37 | restore-keys: | |
| 38 | elm-${{ runner.os }}- |
| 39 | |
| 40 | - name: Build |
| 41 | run: bunx elm-land build |
| 42 | |
| 43 | - name: elm-review |
| 44 | run: bunx elm-review --ignore-dirs .elm-land |
| 45 | |
| 46 | - name: elm-format |
| 47 | run: bunx elm-format --validate src/ |
| 48 | |
| 49 | |
| 50 | - name: Tests |
| 51 | run: bunx elm-test-rs |