diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f565a80c..7e0a058b 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 73105699..56eaf962 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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