Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,52 +13,52 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [24.x]
node-version: [26.x]

env:
ELM_HOME: '${{ github.workspace }}/elm-stuff/elm-home'

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: '${{ matrix.node-version }}'

- name: Cache node_modules
id: cache-node_modules
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: node_modules
key: node_modules-${{ matrix.os }}-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}

- name: Cache ELM_HOME
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: '${{ env.ELM_HOME }}'
key: elm-${{ matrix.os }}-${{ hashFiles('elm-tooling.json', 'elm/**/elm.json', 'example-*/**/elm.json', 'tests/**/elm.json') }}

- name: npm ci
if: steps.cache-node_modules.outputs.cache-hit != 'true'
run: npm ci
run: npm ci --no-audit
env:
NO_ELM_TOOLING_INSTALL: 1

- name: elm-tooling install
run: npx --no-install elm-tooling install
run: npx elm-tooling install

- name: TypeScript
run: npx --no-install tsc
run: npx tsc

- name: ESLint
run: npx --no-install eslint --report-unused-disable-directives .
run: npx eslint --report-unused-disable-directives .

- name: Prettier
run: npx --no-install prettier --check .
run: npx prettier --check .

- name: elm-format
run: npx --no-install elm-format --validate elm
run: npx elm-format --validate elm

- name: elm-review
run: npx --no-install elm-review
run: npx elm-review
working-directory: elm
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,38 @@ jobs:
matrix:
# Node.js 12, 14 and 16 aren’t supported on the macOS arm64 runners.
os: [ubuntu-latest, macOS-15-intel, windows-latest]
node-version: [12.x, 14.x, 16.x, 18.x, 20.x, 22.x, 24.x]
node-version: [12.x, 14.x, 16.x, 18.x, 20.x, 22.x, 24.x, 26.x]
# Also have a test on macOS arm64.
include:
- os: macOS-latest
node-version: 24.x
node-version: 26.x

env:
ELM_HOME: '${{ github.workspace }}/elm-stuff/elm-home'

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: '${{ matrix.node-version }}'

- name: Cache node_modules
id: cache-node_modules
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: node_modules
key: node_modules-${{ matrix.os }}-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}

- name: Cache ELM_HOME
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: '${{ env.ELM_HOME }}'
key: elm-${{ matrix.os }}-${{ hashFiles('elm-tooling.json', 'elm/**/elm.json', 'example-*/**/elm.json', 'tests/**/elm.json') }}

- name: npm ci
if: steps.cache-node_modules.outputs.cache-hit != 'true'
run: npm ci
run: npm ci --no-audit
env:
NO_ELM_TOOLING_INSTALL: 1

Expand All @@ -54,10 +54,10 @@ jobs:
run: npm install mocha@9

- name: elm-tooling install
run: npx --no-install elm-tooling install
run: npx elm-tooling install

- name: Mocha
run: npx --no-install mocha tests
run: npx mocha tests

- name: elm-test
run: npm run elm-test
Loading