hugo/.github/workflows/test-dart-sass-v1.yml

87 lines
2.9 KiB
YAML
Raw Normal View History

on:
push:
2024-04-14 07:10:43 -04:00
branches: [master]
pull_request:
name: TestDartSassV1
env:
2024-04-14 07:10:43 -04:00
GOPROXY: https://proxy.golang.org
GO111MODULE: on
DART_SASS_VERSION: 1.62.1
DART_SASS_SHA_LINUX: 3574da75a7322a539034648b8ff84ff2cca162eb924d72b663d718cd3936f075
permissions:
contents: read
jobs:
test:
strategy:
matrix:
2024-02-07 13:35:07 -05:00
go-version: [1.22.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- if: matrix.os == 'ubuntu-latest'
name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
2024-04-14 07:10:43 -04:00
- name: Checkout code
2024-04-14 07:14:22 -04:00
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
2024-04-14 07:10:43 -04:00
- name: Install Go
2024-04-14 07:14:22 -04:00
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
2024-04-14 07:10:43 -04:00
with:
go-version: ${{ matrix.go-version }}
check-latest: true
cache: true
cache-dependency-path: |
**/go.sum
**/go.mod
- name: Install Ruby
2024-04-14 07:14:22 -04:00
uses: ruby/setup-ruby@5f19ec79cedfadb78ab837f95b87734d0003c899
2024-04-14 07:10:43 -04:00
with:
ruby-version: "2.7"
bundler-cache: true #
- name: Install Python
2024-04-14 07:14:22 -04:00
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
2024-04-14 07:10:43 -04:00
with:
python-version: "3.x"
- name: Install Mage
run: go install github.com/magefile/mage@v1.15.0
- name: Install asciidoctor
2024-04-14 07:14:22 -04:00
uses: reitzig/actions-asciidoctor@03fcc74cd74880b697950c4930c9ec8a67c69ecc
2024-04-14 07:10:43 -04:00
- name: Install docutils
run: |
pip install docutils
rst2html --version
- if: matrix.os == 'ubuntu-latest'
name: Install pandoc on Linux
run: |
sudo apt-get update -y
sudo apt-get install -y pandoc
2024-04-14 07:10:43 -04:00
- if: matrix.os == 'macos-latest'
run: |
brew install pandoc
- if: matrix.os == 'windows-latest'
run: |
Choco-Install -PackageName pandoc
- run: pandoc -v
- name: Install dart-sass-embedded Linux
run: |
echo "Install Dart Sass version ${DART_SASS_VERSION} ..."
curl -LJO "https://github.com/sass/dart-sass-embedded/releases/download/${DART_SASS_VERSION}/sass_embedded-${DART_SASS_VERSION}-linux-x64.tar.gz";
echo "${DART_SASS_SHA_LINUX} sass_embedded-${DART_SASS_VERSION}-linux-x64.tar.gz" | sha256sum -c;
tar -xvf "sass_embedded-${DART_SASS_VERSION}-linux-x64.tar.gz";
echo "$GITHUB_WORKSPACE/sass_embedded/" >> $GITHUB_PATH
- name: Check
run: |
dart-sass-embedded --version
mage -v check;
env:
HUGO_BUILD_TAGS: extended