This repository has been archived by the owner on Jan 16, 2025. It is now read-only.
Merge pull request #448 from mobu-of-the-world/vite5 #355
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 - Elm | |
on: | |
push: | |
branches: [main] | |
paths: | |
- '.github/workflows/ci-elm.yml' | |
- 'elm.json' | |
- 'elm-tooling.json' | |
- 'package.json' | |
- 'package-lock.json' | |
- '**/*.elm' | |
pull_request: | |
paths: | |
- '.github/workflows/ci-elm.yml' | |
- 'elm.json' | |
- 'elm-tooling.json' | |
- 'package.json' | |
- 'package-lock.json' | |
- '**/*.elm' | |
jobs: | |
test: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.10.0' # selfup { "regex": "\\d[^']+", "script": "node --version | tr -d v" } | |
cache: npm | |
- name: Install npm dependencies | |
run: npm ci --ignore-scripts | |
- name: Load elm # Workaround to avoid `node_modules/elm/bin/elm: Text file busy` | |
run: npx elm --version || true | |
- name: Test | |
run: npm run test | |
lint: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.10.0' # selfup { "regex": "\\d[^']+", "script": "node --version | tr -d v" } | |
cache: npm | |
- name: Install npm dependencies | |
run: npm ci --ignore-scripts | |
- name: Load elm # Workaround to avoid `node_modules/elm/bin/elm: Text file busy` | |
run: npx elm --version || true | |
- name: Format Check | |
run: npx elm-format --validate src | |
- name: Lint | |
run: npx elm-review |