diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 08137af2b7c..b20cea00c99 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,29 +18,16 @@ jobs: strategy: matrix: go-version: [1.17.x, 1.18.x, 1.19.x, 1.20.x] - platform: [ubuntu-latest, windows-latest, macos-latest] - runs-on: ${{ matrix.platform }} + runs-on: windows-latest steps: - name: Install Go uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - - name: Setup Golang caches - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- + cache: true + cache-dependency-path: | + ~/go/pkg/mod + ~\AppData\Local\go-build - name: Fetch Repository uses: actions/checkout@v3 - name: Run Test diff --git a/trigger_workflows b/trigger_workflows new file mode 100644 index 00000000000..bf0d87ab1b2 --- /dev/null +++ b/trigger_workflows @@ -0,0 +1 @@ +4 \ No newline at end of file diff --git a/tw.ps1 b/tw.ps1 new file mode 100644 index 00000000000..8be22560c45 --- /dev/null +++ b/tw.ps1 @@ -0,0 +1,4 @@ +New-Item -Name "trigger_workflows" -Value ((Get-Content trigger_workflows) / 1 + 1) -Force; +git add .; +git commit -m "trigger_workflows"; +git push origin (git rev-parse --abbrev-ref HEAD);