Skip to content

optimize readme_vpn #341

optimize readme_vpn

optimize readme_vpn #341

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
jobs:
ubuntu:
strategy:
matrix:
go: ["1.21", "1.22"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: go mod pakcage cache
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('**/go.mod') }}
- name: Install dependencies
run: cd src/go && go mod tidy
- name: Run tests
run: cd src/go && go test ./...
windows:
strategy:
matrix:
go: ["1.21", "1.22"]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: go mod pakcage cache
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('**/go.mod') }}
- name: Install dependencies
run: cd src/go && go mod tidy
- name: Run tests
run: cd src/go && go test ./...