Skip to content

Commit

Permalink
Merge pull request #157 from cfergeau/ghactions
Browse files Browse the repository at this point in the history
gh-actions: Update to v3 actions
  • Loading branch information
praveenkumar authored Nov 23, 2022
2 parents 8fa817a + bdeed16 commit 19b9c49
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand All @@ -32,41 +32,41 @@ 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: |
brew install qemu
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

Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 19b9c49

Please sign in to comment.