Skip to content

Commit

Permalink
feat: Use actions for WSL in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
khalifaa55 committed Sep 13, 2024
1 parent a3941d1 commit 200474c
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/e2e_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,11 @@ jobs:
if: runner.os == 'Windows'
shell: wsl-bash {0}
run: |
# Set Go version from matrix
GO_VERSION="1.21.0"
# Setup Go using actions/setup-go
curl -fsSL https://github.com/actions/setup-go/releases/latest/download/setup-go-linux-x64 -o setup-go
chmod +x ./setup-go
./setup-go ${{ matrix.go }}
# Download Go
wget https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz
# Remove any previous Go installation
sudo rm -rf /usr/local/go
# Extract Go to /usr/local
sudo tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz
# Add Go to PATH
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
export PATH=$PATH:/usr/local/go/bin
# Verify Go installation
go version
Expand Down

0 comments on commit 200474c

Please sign in to comment.