Skip to content

Commit

Permalink
prep for merge
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjs committed Aug 3, 2024
1 parent f2016f0 commit 9b9f405
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ jobs:
matrix:
node:
- 20.x
#- 22.x
- 22.x
platform:
- os: ubuntu-latest
#- os: macos-latest
- os: macos-latest
- os: windows-latest
fail-fast: false

Expand Down Expand Up @@ -89,17 +89,17 @@ jobs:
- name: "Test 3: localsConvention, second position"
if: success() || failure()
run: |
scripts/test.sh casing/casing '' casing/camelCaseOnly "--localsConvention camelCaseOnly"
scripts/test.sh casing/casing "" casing/camelCaseOnly "--localsConvention camelCaseOnly"
- name: "Test 4: relative outdir"
if: success() || failure()
run: |
scripts/test.sh foo "--outdir generated" '' '' generated/
scripts/test.sh foo "--outdir generated" "" "" generated/
- name: "Test 5: absolute outdir"
if: success() || failure()
run: |
scripts/test.sh foo "-o $GITHUB_WORKSPACE/generated" '' '' "$GITHUB_WORKSPACE"/generated/
scripts/test.sh foo "-o $GITHUB_WORKSPACE/generated" "" "" "$GITHUB_WORKSPACE"/generated/
Publish:
if: ${{ github.ref == 'refs/heads/main' }}
Expand Down
3 changes: 1 addition & 2 deletions scripts/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env bash
set -x

# $1 is the input name, relative to `fixtures`. Required.
input=$1
Expand Down Expand Up @@ -29,4 +28,4 @@ $GITHUB_WORKSPACE/dist/main.js ${beforeOpts[@]} "*.css" ${afterOpts[@]}

# Use `diff` to compare the files.
# Use `-I '//.*'` to ignore the first line (comment) which has generated path and timestamp.
diff --color=auto --strip-trailing-cr -uI '//.*' expected.d.css.ts ${prefix}test.d.css.ts
diff --color=auto --strip-trailing-cr -uI "//.*" expected.d.css.ts ${prefix}test.d.css.ts

0 comments on commit 9b9f405

Please sign in to comment.