Remove git link added by accident #159
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
name: Test | |
env: | |
SASS_VERSION: 1.80.5 | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.22.x, 1.23.x] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install staticcheck | |
run: go install honnef.co/go/tools/cmd/staticcheck@latest | |
- name: Checkout code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Install dart-sass Linux | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
curl -LJO "https://github.com/sass/dart-sass/releases/download/${SASS_VERSION}/dart-sass-${SASS_VERSION}-linux-x64.tar.gz"; | |
tar -xvf "dart-sass-${SASS_VERSION}-linux-x64.tar.gz"; | |
echo "DART_SASS_BINARY=$GITHUB_WORKSPACE/dart-sass/sass" >> $GITHUB_ENV | |
./dart-sass/sass --version | |
- name: Install dart-sass MacOS | |
if: matrix.os == 'macos-latest' | |
run: | | |
curl -LJO "https://github.com/sass/dart-sass/releases/download/${SASS_VERSION}/dart-sass-${SASS_VERSION}-macos-x64.tar.gz"; | |
tar -xvf "dart-sass-${SASS_VERSION}-macos-x64.tar.gz"; | |
echo "DART_SASS_BINARY=$GITHUB_WORKSPACE/dart-sass/sass" >> $GITHUB_ENV | |
- name: Install dart-sass Windows | |
if: matrix.os == 'windows-latest' | |
run: | | |
curl -LJO "https://github.com/sass/dart-sass/releases/download/${env:SASS_VERSION}/dart-sass-${env:SASS_VERSION}-windows-x64.zip"; | |
Expand-Archive -Path "dart-sass-${env:SASS_VERSION}-windows-x64.zip" -DestinationPath .; | |
echo "DART_SASS_BINARY=$env:GITHUB_WORKSPACE/dart-sass/sass.bat" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append | |
- name: Staticcheck | |
run: staticcheck ./... | |
- name: Test | |
run: go test -race . -coverprofile=coverage.txt -covermode=atomic | |
- name: Upload coverage | |
if: success() && matrix.os == 'ubuntu-latest' | |
run: | | |
curl -s https://codecov.io/bash | bash | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
shell: bash |