Bump golang.org/x/net from 0.21.0 to 0.23.0 #796
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
name: Unit Tests | |
on: [push] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: ["1.21"] | |
nodejs-version: ["18"] | |
steps: | |
- name: Set up Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Install build dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install build-essential libgtk-3-dev libwebkit2gtk-4.0-dev npm pkg-config libfuse-dev -y | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.nodejs-version }} | |
cache: "pnpm" | |
cache-dependency-path: frontend/pnpm-lock.yaml | |
- name: Build assets | |
run: | | |
pnpm install --dir frontend | |
pnpm run --dir frontend build | |
- name: Test | |
run: | | |
echo "Test all packages except Wails" | |
go test -v -coverprofile=coverage.txt -covermode=atomic $(go list ./... | grep -v frontend) | |
- name: Convert to lcov | |
run: | | |
go install github.com/jandelgado/gcov2lcov@latest | |
gcov2lcov -infile=coverage.txt -outfile=coverage.lcov | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: coverage.lcov |