Refactor with minor improvements, and add README #58
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ^1.21 | |
id: go | |
- uses: actions/checkout@v4 | |
- name: Get dependencies | |
run: | | |
go get -v -t -d ./... | |
if [ -f Gopkg.toml ]; then | |
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | |
dep ensure | |
fi | |
- name: Build | |
run: make | |
env: | |
CGO_ENABLED: 0 | |
- name: Test | |
run: | | |
sudo rm -rf /etc/ssh/sshd_config.d/*.conf | |
make test | |
env: | |
CGO_ENABLED: 0 | |
- name: Create GitHub Release | |
if: startsWith(github.ref, 'refs/tags/') | |
id: upload-release-asset | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
sshmux | |
config.example.json | |
sshmux.service |