Skip to content

Commit

Permalink
github: Bump Go and Sass versions, add Staticcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Jul 11, 2024
1 parent e56f9ca commit 86084ea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@ on:
pull_request:
name: Test
env:
SASS_VERSION: 1.63.2
SASS_VERSION: 1.77.5
jobs:
test:
strategy:
matrix:
go-version: [~1.19, ~1.20]
go-version: [1.21.x, 1.22.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v3
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@v3
- name: Install dart-sass Linux
Expand All @@ -38,6 +40,8 @@ jobs:
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
Expand Down

0 comments on commit 86084ea

Please sign in to comment.