diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 9591f887a..dcbcdc1f0 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -12,17 +12,17 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 30 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: 1.18 - name: Build run: make cross qemu-wrapper vm - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: gvproxy path: bin/gvproxy* @@ -32,7 +32,7 @@ jobs: needs: build # Don't bother testing if cross arch build fails timeout-minutes: 30 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install run: | @@ -40,33 +40,33 @@ jobs: touch continue - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: 1.18 - name: Test run: make test - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: always() with: name: qcon path: test/qcon.log - + win-sshproxy-tests: runs-on: windows-latest # Only builds/runs on windows timeout-minutes: 30 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: 1.18 - name: Build run: go build -ldflags -H=windowsgui -o bin/win-sshproxy.exe ./cmd/win-sshproxy - + - name: Test run: go test -v .\test-win-sshproxy diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 6c5b88c45..02a257103 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -11,6 +11,11 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.18 + + - uses: actions/checkout@v3 - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3