Skip to content

⬆️ Update dev dependencies + improve CI #12

⬆️ Update dev dependencies + improve CI

⬆️ Update dev dependencies + improve CI #12

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
cache: npm
node-version-file: .node-version
- name: Install
run: npm ci
- name: CI build
run: npm run ci-build
test:
name: Test (${{ matrix.node }}|${{ matrix.platform.os }}|${{ matrix.platform.shell }})
needs: build # Verify ci-build first
strategy:
matrix:
node: [20.x, 22.x]
platform:
- os: ubuntu-latest
shell: bash
- os: macos-latest
shell: bash
- os: windows-latest
shell: bash
- os: windows-latest
shell: pwsh
- os: windows-latest
shell: powershell
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
cache: npm
node-version: ${{ matrix.node }}
- name: Install css-typed
run: npm install -g .
- name: Run css-typed (the test)
# `cp` and `diff` should work same on bash and pwsh
run: |

Check failure on line 68 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yaml (Line: 68, Col: 14): Unrecognized named-value: 'RUNNER_TEMP'. Located at position 1 within expression: RUNNER_TEMP
cp src/fixtures/kebab-case.css ${{ RUNNER_TEMP }}/kebab-case.css
css-typed css-typed '${{ RUNNER_TEMP }}/*.css'
diff -sq src/fixtures/kebab-case-default.d.css.ts ${{ RUNNER_TEMP }}/kebab-case.d.css.ts
css-typed css-typed '${{ RUNNER_TEMP }}/*.css' --dashes
diff -sq src/fixtures/kebab-case-dashes.d.css.ts ${{ RUNNER_TEMP }}/kebab-case.d.css.ts