Skip to content

Commit

Permalink
Update Sass GitHub action to save built files
Browse files Browse the repository at this point in the history
  • Loading branch information
romaricpascal committed Apr 8, 2024
1 parent c5668d5 commit 5e1a809
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/sass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ jobs:
run: |
! grep "\$govuk-" .tmp/all.css
- name: Save compiled Sass
uses: actions/[email protected]
if: ${{ !cancelled() }}
continue-on-error: true
with:
name: Dart Sass v1.0.0 output
path: .tmp/all.css
if-no-files-found: ignore

dart-sass-latest:
name: Dart Sass v1 (latest)
runs-on: ubuntu-latest
Expand Down Expand Up @@ -80,6 +89,15 @@ jobs:
run: |
! grep "\$govuk-" .tmp/all.css
- name: Save compiled Sass
uses: actions/[email protected]
if: ${{ !cancelled() }}
continue-on-error: true
with:
name: Dart Sass v1 (latest) output
path: .tmp/all.css
if-no-files-found: ignore

# Node Sass v3.4.0 = LibSass v3.3.0
lib-sass:
name: LibSass v3.3.0 (deprecated)
Expand Down Expand Up @@ -110,6 +128,15 @@ jobs:
run: |
! grep "\$govuk-" .tmp/all.css
- name: Save compiled Sass
uses: actions/[email protected]
if: ${{ !cancelled() }}
continue-on-error: true
with:
name: LibSass v3.3.0 (deprecated) output
path: .tmp/all.css
if-no-files-found: ignore

# Node Sass v8.x = LibSass v3 latest
lib-sass-latest:
name: LibSass v3 (latest, deprecated)
Expand Down Expand Up @@ -140,6 +167,15 @@ jobs:
run: |
! grep "\$govuk-" .tmp/all.css
- name: Save compiled Sass
uses: actions/[email protected]
if: ${{ !cancelled() }}
continue-on-error: true
with:
name: LibSass v3 (latest, deprecated) output
path: .tmp/all.css
if-no-files-found: ignore

ruby-sass:
name: Ruby Sass v3.4.0 (deprecated)
runs-on: ubuntu-latest
Expand Down Expand Up @@ -168,6 +204,15 @@ jobs:
run: |
! grep "\$govuk-" .tmp/all.css
- name: Save compiled Sass
uses: actions/[email protected]
if: ${{ !cancelled() }}
continue-on-error: true
with:
name: Ruby Sass v3.4.0 (deprecated) output
path: .tmp/all.css
if-no-files-found: ignore

ruby-sass-latest:
name: Ruby Sass v3 (latest, deprecated)
runs-on: ubuntu-latest
Expand Down Expand Up @@ -195,3 +240,12 @@ jobs:
- name: Check output
run: |
! grep "\$govuk-" .tmp/all.css
- name: Save compiled Sass
uses: actions/[email protected]
if: ${{ !cancelled() }}
continue-on-error: true
with:
name: Ruby Sass v3 (latest, deprecated) output
path: .tmp/all.css
if-no-files-found: ignore

0 comments on commit 5e1a809

Please sign in to comment.